michael@0: /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* All the xptcall private declarations - only include locally. */ michael@0: michael@0: #ifndef xptcprivate_h___ michael@0: #define xptcprivate_h___ michael@0: michael@0: #include "xptcall.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class xptiInterfaceEntry; michael@0: michael@0: #if !defined(__ia64) || (!defined(__hpux) && !defined(__linux__) && !defined(__FreeBSD__)) michael@0: #define STUB_ENTRY(n) NS_IMETHOD Stub##n() = 0; michael@0: #else michael@0: #define STUB_ENTRY(n) NS_IMETHOD Stub##n(uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t) = 0; michael@0: #endif michael@0: michael@0: #define SENTINEL_ENTRY(n) NS_IMETHOD Sentinel##n() = 0; michael@0: michael@0: class nsIXPTCStubBase : public nsISupports michael@0: { michael@0: public: michael@0: #include "xptcstubsdef.inc" michael@0: }; michael@0: michael@0: #undef STUB_ENTRY michael@0: #undef SENTINEL_ENTRY michael@0: michael@0: #if !defined(__ia64) || (!defined(__hpux) && !defined(__linux__) && !defined(__FreeBSD__)) michael@0: #define STUB_ENTRY(n) NS_IMETHOD Stub##n(); michael@0: #else michael@0: #define STUB_ENTRY(n) NS_IMETHOD Stub##n(uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t); michael@0: #endif michael@0: michael@0: #define SENTINEL_ENTRY(n) NS_IMETHOD Sentinel##n(); michael@0: michael@0: class nsXPTCStubBase MOZ_FINAL : public nsIXPTCStubBase michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS_INHERITED michael@0: michael@0: #include "xptcstubsdef.inc" michael@0: michael@0: nsXPTCStubBase(nsIXPTCProxy* aOuter, xptiInterfaceEntry *aEntry) : michael@0: mOuter(aOuter), mEntry(aEntry) { } michael@0: michael@0: nsIXPTCProxy* mOuter; michael@0: xptiInterfaceEntry* mEntry; michael@0: michael@0: ~nsXPTCStubBase() { } michael@0: }; michael@0: michael@0: #undef STUB_ENTRY michael@0: #undef SENTINEL_ENTRY michael@0: michael@0: #if defined(__clang__) || defined(__GNUC__) michael@0: #define ATTRIBUTE_USED __attribute__ ((__used__)) michael@0: #else michael@0: #define ATTRIBUTE_USED michael@0: #endif michael@0: michael@0: #endif /* xptcprivate_h___ */