OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/xpcom/base/nsITraceRefcnt.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsITraceRefcnt_h__ |
| 6 #define __gen_nsITraceRefcnt_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsISupports_h__ |
| 10 #include "nsISupports.h" |
| 11 #endif |
| 12 |
| 13 /* For IDL files that don't want to include root IDL files. */ |
| 14 #ifndef NS_NO_VTABLE |
| 15 #define NS_NO_VTABLE |
| 16 #endif |
| 17 |
| 18 /* starting interface: nsITraceRefcnt */ |
| 19 #define NS_ITRACEREFCNT_IID_STR "273dc92f-0fe6-4545-96a9-21be77828039" |
| 20 |
| 21 #define NS_ITRACEREFCNT_IID \ |
| 22 {0x273dc92f, 0x0fe6, 0x4545, \ |
| 23 { 0x96, 0xa9, 0x21, 0xbe, 0x77, 0x82, 0x80, 0x39 }} |
| 24 |
| 25 /** |
| 26 * nsITraceRefcnt is an interface between XPCOM Glue and XPCOM. Users should |
| 27 * access the nsITraceRefcnt interface through the static class nsTraceRefcnt. |
| 28 * @see nsTraceRefcnt.h |
| 29 * |
| 30 * @status UNDER_REVIEW |
| 31 */ |
| 32 class NS_NO_VTABLE nsITraceRefcnt : public nsISupports { |
| 33 public: |
| 34 |
| 35 NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITRACEREFCNT_IID) |
| 36 |
| 37 /* void logAddRef (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeNam
e, in unsigned long aInstanceSize); */ |
| 38 NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName,
PRUint32 aInstanceSize) = 0; |
| 39 |
| 40 /* void logRelease (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeNa
me); */ |
| 41 NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName)
= 0; |
| 42 |
| 43 /* void logCtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInsta
nceSize); */ |
| 44 NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
= 0; |
| 45 |
| 46 /* void logDtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInsta
nceSize); */ |
| 47 NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
= 0; |
| 48 |
| 49 /* void logAddCOMPtr (in voidPtr aPtr, in nsISupports aObject); */ |
| 50 NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) = 0; |
| 51 |
| 52 /* void logReleaseCOMPtr (in voidPtr aPtr, in nsISupports aObject); */ |
| 53 NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) = 0; |
| 54 |
| 55 }; |
| 56 |
| 57 /* Use this macro when declaring classes that implement this interface. */ |
| 58 #define NS_DECL_NSITRACEREFCNT \ |
| 59 NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName,
PRUint32 aInstanceSize); \ |
| 60 NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName)
; \ |
| 61 NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
; \ |
| 62 NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
; \ |
| 63 NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject); \ |
| 64 NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject); |
| 65 |
| 66 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 67 #define NS_FORWARD_NSITRACEREFCNT(_to) \ |
| 68 NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName,
PRUint32 aInstanceSize) { return _to LogAddRef(aPtr, aNewRefcnt, aTypeName, aIns
tanceSize); } \ |
| 69 NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName)
{ return _to LogRelease(aPtr, aNewRefcnt, aTypeName); } \ |
| 70 NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
{ return _to LogCtor(aPtr, aTypeName, aInstanceSize); } \ |
| 71 NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
{ return _to LogDtor(aPtr, aTypeName, aInstanceSize); } \ |
| 72 NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) { return _to LogAdd
COMPtr(aPtr, aObject); } \ |
| 73 NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) { return _to Lo
gReleaseCOMPtr(aPtr, aObject); } |
| 74 |
| 75 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 76 #define NS_FORWARD_SAFE_NSITRACEREFCNT(_to) \ |
| 77 NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName,
PRUint32 aInstanceSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogAddRef(a
Ptr, aNewRefcnt, aTypeName, aInstanceSize); } \ |
| 78 NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->LogRelease(aPtr, aNewRefcnt, aType
Name); } \ |
| 79 NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->LogCtor(aPtr, aTypeName, aInstance
Size); } \ |
| 80 NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->LogDtor(aPtr, aTypeName, aInstance
Size); } \ |
| 81 NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) { return !_to ? NS_
ERROR_NULL_POINTER : _to->LogAddCOMPtr(aPtr, aObject); } \ |
| 82 NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) { return !_to ?
NS_ERROR_NULL_POINTER : _to->LogReleaseCOMPtr(aPtr, aObject); } |
| 83 |
| 84 #if 0 |
| 85 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 86 |
| 87 /* Header file */ |
| 88 class nsTraceRefcnt : public nsITraceRefcnt |
| 89 { |
| 90 public: |
| 91 NS_DECL_ISUPPORTS |
| 92 NS_DECL_NSITRACEREFCNT |
| 93 |
| 94 nsTraceRefcnt(); |
| 95 |
| 96 private: |
| 97 ~nsTraceRefcnt(); |
| 98 |
| 99 protected: |
| 100 /* additional members */ |
| 101 }; |
| 102 |
| 103 /* Implementation file */ |
| 104 NS_IMPL_ISUPPORTS1(nsTraceRefcnt, nsITraceRefcnt) |
| 105 |
| 106 nsTraceRefcnt::nsTraceRefcnt() |
| 107 { |
| 108 /* member initializers and constructor code */ |
| 109 } |
| 110 |
| 111 nsTraceRefcnt::~nsTraceRefcnt() |
| 112 { |
| 113 /* destructor code */ |
| 114 } |
| 115 |
| 116 /* void logAddRef (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName,
in unsigned long aInstanceSize); */ |
| 117 NS_IMETHODIMP nsTraceRefcnt::LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const c
har *aTypeName, PRUint32 aInstanceSize) |
| 118 { |
| 119 return NS_ERROR_NOT_IMPLEMENTED; |
| 120 } |
| 121 |
| 122 /* void logRelease (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName
); */ |
| 123 NS_IMETHODIMP nsTraceRefcnt::LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const
char *aTypeName) |
| 124 { |
| 125 return NS_ERROR_NOT_IMPLEMENTED; |
| 126 } |
| 127 |
| 128 /* void logCtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanc
eSize); */ |
| 129 NS_IMETHODIMP nsTraceRefcnt::LogCtor(void * aPtr, const char *aTypeName, PRUint3
2 aInstanceSize) |
| 130 { |
| 131 return NS_ERROR_NOT_IMPLEMENTED; |
| 132 } |
| 133 |
| 134 /* void logDtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanc
eSize); */ |
| 135 NS_IMETHODIMP nsTraceRefcnt::LogDtor(void * aPtr, const char *aTypeName, PRUint3
2 aInstanceSize) |
| 136 { |
| 137 return NS_ERROR_NOT_IMPLEMENTED; |
| 138 } |
| 139 |
| 140 /* void logAddCOMPtr (in voidPtr aPtr, in nsISupports aObject); */ |
| 141 NS_IMETHODIMP nsTraceRefcnt::LogAddCOMPtr(void * aPtr, nsISupports *aObject) |
| 142 { |
| 143 return NS_ERROR_NOT_IMPLEMENTED; |
| 144 } |
| 145 |
| 146 /* void logReleaseCOMPtr (in voidPtr aPtr, in nsISupports aObject); */ |
| 147 NS_IMETHODIMP nsTraceRefcnt::LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) |
| 148 { |
| 149 return NS_ERROR_NOT_IMPLEMENTED; |
| 150 } |
| 151 |
| 152 /* End of implementation class template. */ |
| 153 #endif |
| 154 |
| 155 |
| 156 #endif /* __gen_nsITraceRefcnt_h__ */ |
OLD | NEW |