Changeset 20374 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Jun 8, 2009 12:43:21 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48298
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvIDC.h
r20366 r20374 226 226 * Most OSes uses 227 227 */ 228 RT_ BEGIN_DECLS228 RT_C_DECLS_BEGIN 229 229 230 230 #if defined(RT_OS_DARWIN) … … 250 250 #endif 251 251 252 RT_ END_DECLS252 RT_C_DECLS_END 253 253 254 254 /** -
trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
r20366 r20374 49 49 50 50 #if defined(RT_OS_WINDOWS) 51 RT_ BEGIN_DECLS51 RT_C_DECLS_BEGIN 52 52 # if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK) 53 53 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap … … 76 76 # define memcmp(a,b,c) mymemcmp(a,b,c) 77 77 int VBOXCALL mymemcmp(const void *, const void *, size_t); 78 RT_ END_DECLS78 RT_C_DECLS_END 79 79 80 80 #elif defined(RT_OS_LINUX) … … 191 191 #endif 192 192 193 RT_ BEGIN_DECLS193 RT_C_DECLS_BEGIN 194 194 int linux_dprintf(const char *format, ...); 195 RT_ END_DECLS195 RT_C_DECLS_END 196 196 197 197 /* debug printf */ … … 624 624 625 625 626 RT_ BEGIN_DECLS626 RT_C_DECLS_BEGIN 627 627 628 628 /******************************************************************************* … … 651 651 bool VBOXCALL supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores); 652 652 653 RT_ END_DECLS654 655 #endif 656 653 RT_C_DECLS_END 654 655 #endif 656 -
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r20366 r20374 242 242 * OS Specific Function * 243 243 *******************************************************************************/ 244 RT_ BEGIN_DECLS244 RT_C_DECLS_BEGIN 245 245 int suplibOsInstall(void); 246 246 int suplibOsUninstall(void); … … 315 315 316 316 317 RT_ END_DECLS318 319 320 #endif 321 317 RT_C_DECLS_END 318 319 320 #endif 321 -
trunk/src/VBox/HostDrivers/Support/SUPR0IdcClientInternal.h
r20366 r20374 43 43 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 44 44 # pragma warning(disable : 4163) 45 RT_ BEGIN_DECLS45 RT_C_DECLS_BEGIN 46 46 # include <ntddk.h> 47 RT_ END_DECLS47 RT_C_DECLS_END 48 48 # pragma warning(default : 4163) 49 49 # undef _InterlockedExchange … … 52 52 # undef _InterlockedAddLargeStatistic 53 53 # else 54 RT_ BEGIN_DECLS54 RT_C_DECLS_BEGIN 55 55 # include <ntddk.h> 56 RT_ END_DECLS56 RT_C_DECLS_END 57 57 # endif 58 58 #endif /* RT_OS_WINDOWS */ … … 80 80 AssertCompile(RT_SIZEOFMEMB(SUPDRVIDCHANDLE, apvPadding) >= sizeof(struct SUPDRVIDCHANDLEPRIVATE)); 81 81 82 RT_ BEGIN_DECLS82 RT_C_DECLS_BEGIN 83 83 PSUPDRVIDCHANDLE supR0IdcGetHandleFromSession(PSUPDRVSESSION pSession); 84 84 int VBOXCALL supR0IdcNativeOpen(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQCONNECT pReq); 85 85 int VBOXCALL supR0IdcNativeClose(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQHDR pReq); 86 86 int VBOXCALL supR0IdcNativeCall(PSUPDRVIDCHANDLE pHandle, uint32_t iReq, PSUPDRVIDCREQHDR pReq); 87 RT_ END_DECLS87 RT_C_DECLS_END 88 88 89 89 #endif -
trunk/src/VBox/HostDrivers/Support/SUPSvcInternal.h
r20366 r20374 37 37 #include <iprt/getopt.h> 38 38 39 RT_ BEGIN_DECLS39 RT_C_DECLS_BEGIN 40 40 41 41 /** @name Common Helpers … … 90 90 /** @} */ 91 91 92 RT_ END_DECLS92 RT_C_DECLS_END 93 93 94 94 #endif -
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r20366 r20374 71 71 72 72 #ifdef VBOX_WITH_HOST_VMX 73 RT_ BEGIN_DECLS73 RT_C_DECLS_BEGIN 74 74 # include <i386/vmx.h> 75 RT_ END_DECLS75 RT_C_DECLS_END 76 76 #endif 77 77 … … 89 89 * Internal Functions * 90 90 *******************************************************************************/ 91 RT_ BEGIN_DECLS91 RT_C_DECLS_BEGIN 92 92 static kern_return_t VBoxDrvDarwinStart(struct kmod_info *pKModInfo, void *pvData); 93 93 static kern_return_t VBoxDrvDarwinStop(struct kmod_info *pKModInfo, void *pvData); … … 101 101 102 102 static IOReturn VBoxDrvDarwinSleepHandler(void *pvTarget, void *pvRefCon, UInt32 uMessageType, IOService *pProvider, void *pvMessageArgument, vm_size_t argSize); 103 RT_ END_DECLS103 RT_C_DECLS_END 104 104 105 105 … … 162 162 * Declare the module stuff. 163 163 */ 164 RT_ BEGIN_DECLS164 RT_C_DECLS_BEGIN 165 165 extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData); 166 166 extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData); … … 170 170 DECLHIDDEN(kmod_stop_func_t *) _antimain = VBoxDrvDarwinStop; 171 171 DECLHIDDEN(int) _kext_apple_cc = __APPLE_CC__; 172 RT_ END_DECLS172 RT_C_DECLS_END 173 173 174 174 -
trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp
r20366 r20374 64 64 #define SESSION_HASH(sfn) ((sfn) % RT_ELEMENTS(g_apSessionHashTab)) 65 65 66 RT_ BEGIN_DECLS66 RT_C_DECLS_BEGIN 67 67 /* Defined in SUPDrvA-os2.asm */ 68 68 extern uint16_t g_offLogHead; … … 74 74 extern uint16_t g_cchInitText; 75 75 extern uint16_t g_cchInitTextMax; 76 RT_ END_DECLS76 RT_C_DECLS_END 77 77 78 78 -
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r20366 r20374 91 91 * Exported Functions * 92 92 *******************************************************************************/ 93 RT_ BEGIN_DECLS93 RT_C_DECLS_BEGIN 94 94 ULONG _stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath); 95 RT_ END_DECLS95 RT_C_DECLS_END 96 96 97 97 -
trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdpInternal.h
r20366 r20374 29 29 30 30 31 RT_ BEGIN_DECLS31 RT_C_DECLS_BEGIN 32 32 33 33 /** Pointer to the globals. */ … … 338 338 339 339 340 RT_ END_DECLS340 RT_C_DECLS_END 341 341 342 342 #endif -
trunk/src/VBox/HostDrivers/VBoxNetAdp/darwin/VBoxNetAdp-darwin.cpp
r20366 r20374 45 45 46 46 #include <sys/systm.h> 47 RT_ BEGIN_DECLS/* Buggy 10.4 headers, fixed in 10.5. */47 RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */ 48 48 #include <sys/kpi_mbuf.h> 49 RT_ END_DECLS49 RT_C_DECLS_END 50 50 51 51 #include <net/ethernet.h> … … 96 96 * Internal Functions * 97 97 *******************************************************************************/ 98 RT_ BEGIN_DECLS98 RT_C_DECLS_BEGIN 99 99 static kern_return_t VBoxNetAdpDarwinStart(struct kmod_info *pKModInfo, void *pvData); 100 100 static kern_return_t VBoxNetAdpDarwinStop(struct kmod_info *pKModInfo, void *pvData); 101 RT_ END_DECLS101 RT_C_DECLS_END 102 102 103 103 static int VBoxNetAdpDarwinOpen(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess); … … 111 111 * Declare the module stuff. 112 112 */ 113 RT_ BEGIN_DECLS113 RT_C_DECLS_BEGIN 114 114 extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData); 115 115 extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData); … … 119 119 DECLHIDDEN(kmod_stop_func_t *) _antimain = VBoxNetAdpDarwinStop; 120 120 DECLHIDDEN(int) _kext_apple_cc = __APPLE_CC__; 121 RT_ END_DECLS121 RT_C_DECLS_END 122 122 123 123 /** -
trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFltInternal.h
r20366 r20374 29 29 30 30 31 RT_ BEGIN_DECLS31 RT_C_DECLS_BEGIN 32 32 33 33 /** Pointer to the globals. */ … … 419 419 420 420 421 RT_ END_DECLS422 423 #endif 424 421 RT_C_DECLS_END 422 423 #endif 424 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r20366 r20374 58 58 #include <sys/kern_event.h> 59 59 #include <net/kpi_interface.h> 60 RT_ BEGIN_DECLS/* Buggy 10.4 headers, fixed in 10.5. */60 RT_C_DECLS_BEGIN /* Buggy 10.4 headers, fixed in 10.5. */ 61 61 #include <sys/kpi_mbuf.h> 62 62 #include <net/kpi_interfacefilter.h> 63 RT_ END_DECLS63 RT_C_DECLS_END 64 64 #include <net/if.h> 65 65 … … 84 84 * Internal Functions * 85 85 *******************************************************************************/ 86 RT_ BEGIN_DECLS86 RT_C_DECLS_BEGIN 87 87 static kern_return_t VBoxNetFltDarwinStart(struct kmod_info *pKModInfo, void *pvData); 88 88 static kern_return_t VBoxNetFltDarwinStop(struct kmod_info *pKModInfo, void *pvData); 89 RT_ END_DECLS89 RT_C_DECLS_END 90 90 91 91 … … 118 118 * Declare the module stuff. 119 119 */ 120 RT_ BEGIN_DECLS120 RT_C_DECLS_BEGIN 121 121 extern kern_return_t _start(struct kmod_info *pKModInfo, void *pvData); 122 122 extern kern_return_t _stop(struct kmod_info *pKModInfo, void *pvData); … … 126 126 DECLHIDDEN(kmod_stop_func_t *) _antimain = VBoxNetFltDarwinStop; 127 127 DECLHIDDEN(int) _kext_apple_cc = __APPLE_CC__; 128 RT_ END_DECLS128 RT_C_DECLS_END 129 129 130 130
Note:
See TracChangeset
for help on using the changeset viewer.