2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-03-23 05:23:29 +03:00
|
|
|
|
|
|
|
/* All the xptcall private declarations - only include locally. */
|
|
|
|
|
|
|
|
#ifndef xptcprivate_h___
|
|
|
|
#define xptcprivate_h___
|
|
|
|
|
|
|
|
#include "xptcall.h"
|
2006-11-20 20:03:38 +03:00
|
|
|
#include "nsAutoPtr.h"
|
2012-06-06 03:51:58 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2006-11-20 20:03:38 +03:00
|
|
|
|
|
|
|
class xptiInterfaceEntry;
|
|
|
|
|
2012-08-08 04:49:07 +04:00
|
|
|
#if !defined(__ia64) || (!defined(__hpux) && !defined(__linux__) && !defined(__FreeBSD__))
|
2006-11-20 20:03:38 +03:00
|
|
|
#define STUB_ENTRY(n) NS_IMETHOD Stub##n() = 0;
|
|
|
|
#else
|
2012-08-22 19:56:38 +04:00
|
|
|
#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;
|
2006-11-20 20:03:38 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SENTINEL_ENTRY(n) NS_IMETHOD Sentinel##n() = 0;
|
|
|
|
|
|
|
|
class nsIXPTCStubBase : public nsISupports
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
#include "xptcstubsdef.inc"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef STUB_ENTRY
|
|
|
|
#undef SENTINEL_ENTRY
|
|
|
|
|
2012-08-08 04:49:07 +04:00
|
|
|
#if !defined(__ia64) || (!defined(__hpux) && !defined(__linux__) && !defined(__FreeBSD__))
|
2015-03-21 19:28:04 +03:00
|
|
|
#define STUB_ENTRY(n) NS_IMETHOD Stub##n() override;
|
2006-11-20 20:03:38 +03:00
|
|
|
#else
|
2015-03-21 19:28:04 +03:00
|
|
|
#define STUB_ENTRY(n) NS_IMETHOD Stub##n(uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t) override;
|
2006-11-20 20:03:38 +03:00
|
|
|
#endif
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
#define SENTINEL_ENTRY(n) NS_IMETHOD Sentinel##n() override;
|
2006-11-20 20:03:38 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsXPTCStubBase final : public nsIXPTCStubBase
|
2006-11-20 20:03:38 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
#include "xptcstubsdef.inc"
|
|
|
|
|
2015-08-04 15:30:00 +03:00
|
|
|
nsXPTCStubBase(nsIXPTCProxy* aOuter, xptiInterfaceEntry *aEntry)
|
2016-12-12 17:27:58 +03:00
|
|
|
: mOuter(aOuter), mEntry(aEntry) {}
|
2006-11-20 20:03:38 +03:00
|
|
|
|
|
|
|
nsIXPTCProxy* mOuter;
|
|
|
|
xptiInterfaceEntry* mEntry;
|
|
|
|
|
2016-12-12 17:27:58 +03:00
|
|
|
~nsXPTCStubBase() {}
|
2006-11-20 20:03:38 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#undef STUB_ENTRY
|
|
|
|
#undef SENTINEL_ENTRY
|
1999-03-23 05:23:29 +03:00
|
|
|
|
2014-01-18 01:17:20 +04:00
|
|
|
#if defined(__clang__) || defined(__GNUC__)
|
|
|
|
#define ATTRIBUTE_USED __attribute__ ((__used__))
|
|
|
|
#else
|
|
|
|
#define ATTRIBUTE_USED
|
|
|
|
#endif
|
|
|
|
|
1999-03-23 05:23:29 +03:00
|
|
|
#endif /* xptcprivate_h___ */
|