Changeset 3191 in vbox for trunk/include/VBox
- Timestamp:
- Jun 20, 2007 10:26:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/defs.h
r2981 r3191 31 31 #include <iprt/types.h> 32 32 33 #if !defined (VBOX_WITH_XPCOM) 34 33 35 #if defined (__WIN__) 34 36 … … 44 46 #define NS_IMPL_ISUPPORTS1_CI(a, b) 45 47 46 / / these are XPCOM only, one for every interface implemented48 /* these are XPCOM only, one for every interface implemented */ 47 49 #define NS_DECL_ISUPPORTS 48 50 #define NS_DECL_IVIRTUALBOX … … 50 52 #define NS_DECL_IMACHINE 51 53 52 / / input pointer argument to method54 /* input pointer argument to method */ 53 55 #define INPTR 54 56 55 / / makes the name of the getter interface function (n must be capitalized)57 /* makes the name of the getter interface function (n must be capitalized) */ 56 58 #define COMGETTER(n) get_##n 57 / / makes the name of the setter interface function (n must be capitalized)59 /* makes the name of the setter interface function (n must be capitalized) */ 58 60 #define COMSETTER(n) put_##n 59 61 60 / / a type for an input GUID parameter in the interface method declaration62 /* a type for an input GUID parameter in the interface method declaration */ 61 63 #define GUIDPARAM GUID 62 / / a type for an output GUID parameter in the interface method declaration64 /* a type for an output GUID parameter in the interface method declaration */ 63 65 #define GUIDPARAMOUT GUID* 64 66 … … 71 73 #define COM_IIDOF(I) _ATL_IIDOF (I) 72 74 73 #else // !defined (__WIN__) 75 #else // defined (__WIN__) 76 77 #error "VBOX_WITH_XPCOM is not defined!" 78 79 #endif // defined (__WIN__) 80 81 #else // !defined (VBOX_WITH_XPCOM) 74 82 75 83 // XPCOM 76 84 ///////////////////////////////////////////////////////////////////////////// 85 86 #if defined (__OS2__) 87 88 /* Make sure OS/2 Toolkit headers are pulled in to have 89 * BOOL/ULONG/etc. typedefs already defined in order to be able to redefine 90 * them using #define. */ 91 #include <os2.h> 92 93 /* OS/2 Toolkit defines TRUE and FALSE */ 94 #undef FALSE 95 #undef TRUE 96 97 #endif // defined (__OS2__) 77 98 78 99 #include <nsID.h> … … 112 133 #define TRUE PR_TRUE 113 134 114 / / makes the name of the getter interface function (n must be capitalized)135 /* makes the name of the getter interface function (n must be capitalized) */ 115 136 #define COMGETTER(n) Get##n 116 / / makes the name of the setter interface function (n must be capitalized)137 /* makes the name of the setter interface function (n must be capitalized) */ 117 138 #define COMSETTER(n) Set##n 118 139 119 / / a type to define a raw GUID variable (better to use the Guid class)140 /* a type to define a raw GUID variable (better to use the Guid class) */ 120 141 #define GUID nsID 121 / / a type for an input GUID parameter in the interface method declaration142 /* a type for an input GUID parameter in the interface method declaration */ 122 143 #define GUIDPARAM nsID & 123 / / a type for an output GUID parameter in the interface method declaration144 /* a type for an output GUID parameter in the interface method declaration */ 124 145 #define GUIDPARAMOUT nsID ** 125 146 126 / / CLSID and IID for compatibility with Win32147 /* CLSID and IID for compatibility with Win32 */ 127 148 typedef nsCID CLSID; 128 149 typedef nsIID IID; 129 150 130 / / OLE error codes151 /* OLE error codes */ 131 152 #define S_OK NS_OK 132 153 #define E_UNEXPECTED NS_ERROR_UNEXPECTED … … 147 168 #define COM_IIDOF(I) NS_GET_IID (I) 148 169 149 / /two very simple ATL emulator classes to provide150 // FinalConstruct()/FinalRelease() functionality on Linux 170 /* two very simple ATL emulator classes to provide 171 * FinalConstruct()/FinalRelease() functionality on Linux */ 151 172 152 173 class CComObjectRootEx … … 163 184 }; 164 185 165 / / input pointer argument to method186 /* input pointer argument to method */ 166 187 #define INPTR const 167 188 168 / / helper functions189 /* helper functions */ 169 190 extern "C" 170 191 {
Note:
See TracChangeset
for help on using the changeset viewer.