VirtualBox

Ignore:
Timestamp:
Nov 18, 2013 1:05:36 PM (11 years ago)
Author:
vboxsync
Message:

Additions/Haiku: Build fixes patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-haiku-stubs.c

    r43411 r49529  
    6868struct vboxguest_module_info *g_VBoxGuest;
    6969
    70 size_t RTLogBackdoorPrintf(const char *pszFormat, ...)
     70RTDECL(size_t) RTLogBackdoorPrintf(const char *pszFormat, ...)
    7171{
    7272    va_list args;
     
    7979    return cb;
    8080}
    81 size_t RTLogBackdoorPrintfV(const char *pszFormat, va_list args)
     81RTDECL(size_t) RTLogBackdoorPrintfV(const char *pszFormat, va_list args)
    8282{
    8383    return g_VBoxGuest->_RTLogBackdoorPrintfV(pszFormat, args);
    8484}
    85 int RTLogSetDefaultInstanceThread(PRTLOGGER pLogger, uintptr_t uKey)
     85RTDECL(int) RTLogSetDefaultInstanceThread(PRTLOGGER pLogger, uintptr_t uKey)
    8686{
    8787    return g_VBoxGuest->_RTLogSetDefaultInstanceThread(pLogger, uKey);
    8888}
    89 int RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv)
     89RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv)
    9090{
    9191    return g_VBoxGuest->_RTMemAllocExTag(cb, cbAlignment, fFlags, pszTag, ppv);
    9292}
    93 void* RTMemContAlloc(PRTCCPHYS pPhys, size_t cb)
     93RTR0DECL(void*) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb)
    9494{
    9595    return g_VBoxGuest->_RTMemContAlloc(pPhys, cb);
    9696}
    97 void RTMemContFree(void *pv, size_t cb)
     97RTR0DECL(void) RTMemContFree(void *pv, size_t cb)
    9898{
    9999    g_VBoxGuest->_RTMemContFree(pv, cb);
    100100}
    101 void RTMemFreeEx(void *pv, size_t cb)
     101RTDECL(void) RTMemFreeEx(void *pv, size_t cb)
    102102{
    103103    g_VBoxGuest->_RTMemFreeEx(pv, cb);
    104104}
    105 bool RTMpIsCpuPossible(RTCPUID idCpu)
     105RTDECL(bool) RTMpIsCpuPossible(RTCPUID idCpu)
    106106{
    107107    return g_VBoxGuest->_RTMpIsCpuPossible(idCpu);
    108108}
    109 int RTMpNotificationDeregister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
     109RTDECL(int) RTMpNotificationDeregister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
    110110{
    111111    return g_VBoxGuest->_RTMpNotificationDeregister(pfnCallback, pvUser);
    112112}
    113 int RTMpNotificationRegister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
     113RTDECL(int) RTMpNotificationRegister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
    114114{
    115115    return g_VBoxGuest->_RTMpNotificationRegister(pfnCallback, pvUser);
    116116}
    117 int RTMpOnAll(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
     117RTDECL(int) RTMpOnAll(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
    118118{
    119119    return g_VBoxGuest->_RTMpOnAll(pfnWorker, pvUser1, pvUser2);
    120120}
    121 int RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
     121RTDECL(int) RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
    122122{
    123123    return g_VBoxGuest->_RTMpOnOthers(pfnWorker, pvUser1, pvUser2);
    124124}
    125 int RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
     125RTDECL(int) RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
    126126{
    127127    return g_VBoxGuest->_RTMpOnSpecific(idCpu, pfnWorker, pvUser1, pvUser2);
    128128}
    129 int RTPowerNotificationDeregister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
     129RTDECL(int) RTPowerNotificationDeregister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
    130130{
    131131    return g_VBoxGuest->_RTPowerNotificationDeregister(pfnCallback, pvUser);
    132132}
    133 int RTPowerNotificationRegister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
     133RTDECL(int) RTPowerNotificationRegister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
    134134{
    135135    return g_VBoxGuest->_RTPowerNotificationRegister(pfnCallback, pvUser);
    136136}
    137 int RTPowerSignalEvent(RTPOWEREVENT enmEvent)
     137RTDECL(int) RTPowerSignalEvent(RTPOWEREVENT enmEvent)
    138138{
    139139    return g_VBoxGuest->_RTPowerSignalEvent(enmEvent);
    140140}
    141 void RTR0AssertPanicSystem(void)
     141RTR0DECL(void) RTR0AssertPanicSystem(void)
    142142{
    143143    g_VBoxGuest->_RTR0AssertPanicSystem();
    144144}
    145 int RTR0Init(unsigned fReserved)
     145RTR0DECL(int) RTR0Init(unsigned fReserved)
    146146{
    147147    return g_VBoxGuest->_RTR0Init(fReserved);
    148148}
    149 void* RTR0MemObjAddress(RTR0MEMOBJ MemObj)
     149RTR0DECL(void*) RTR0MemObjAddress(RTR0MEMOBJ MemObj)
    150150{
    151151    return g_VBoxGuest->_RTR0MemObjAddress(MemObj);
    152152}
    153 RTR3PTR RTR0MemObjAddressR3(RTR0MEMOBJ MemObj)
     153RTR0DECL(RTR3PTR) RTR0MemObjAddressR3(RTR0MEMOBJ MemObj)
    154154{
    155155    return g_VBoxGuest->_RTR0MemObjAddressR3(MemObj);
    156156}
    157 int RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
     157RTR0DECL(int) RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
    158158{
    159159    return g_VBoxGuest->_RTR0MemObjAllocContTag(pMemObj, cb, fExecutable, pszTag);
    160160}
    161 int RTR0MemObjAllocLowTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
     161RTR0DECL(int) RTR0MemObjAllocLowTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
    162162{
    163163    return g_VBoxGuest->_RTR0MemObjAllocLowTag(pMemObj, cb, fExecutable, pszTag);
    164164}
    165 int RTR0MemObjAllocPageTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
     165RTR0DECL(int) RTR0MemObjAllocPageTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
    166166{
    167167    return g_VBoxGuest->_RTR0MemObjAllocPageTag(pMemObj, cb, fExecutable, pszTag);
    168168}
    169 int RTR0MemObjAllocPhysExTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment, const char *pszTag)
     169RTR0DECL(int) RTR0MemObjAllocPhysExTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment, const char *pszTag)
    170170{
    171171    return g_VBoxGuest->_RTR0MemObjAllocPhysExTag(pMemObj, cb, PhysHighest, uAlignment, pszTag);
    172172}
    173 int RTR0MemObjAllocPhysNCTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
     173RTR0DECL(int) RTR0MemObjAllocPhysNCTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
    174174{
    175175    return g_VBoxGuest->_RTR0MemObjAllocPhysNCTag(pMemObj, cb, PhysHighest, pszTag);
    176176}
    177 int RTR0MemObjAllocPhysTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
     177RTR0DECL(int) RTR0MemObjAllocPhysTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
    178178{
    179179    return g_VBoxGuest->_RTR0MemObjAllocPhysTag(pMemObj, cb, PhysHighest, pszTag);
    180180}
    181 int RTR0MemObjEnterPhysTag(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag)
     181RTR0DECL(int) RTR0MemObjEnterPhysTag(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag)
    182182{
    183183    return g_VBoxGuest->_RTR0MemObjEnterPhysTag(pMemObj, Phys, cb, uCachePolicy, pszTag);
    184184}
    185 int RTR0MemObjFree(RTR0MEMOBJ MemObj, bool fFreeMappings)
     185RTR0DECL(int) RTR0MemObjFree(RTR0MEMOBJ MemObj, bool fFreeMappings)
    186186{
    187187    return g_VBoxGuest->_RTR0MemObjFree(MemObj, fFreeMappings);
    188188}
    189 RTHCPHYS RTR0MemObjGetPagePhysAddr(RTR0MEMOBJ MemObj, size_t iPage)
     189RTR0DECL(RTHCPHYS) RTR0MemObjGetPagePhysAddr(RTR0MEMOBJ MemObj, size_t iPage)
    190190{
    191191    return g_VBoxGuest->_RTR0MemObjGetPagePhysAddr(MemObj, iPage);
    192192}
    193 bool RTR0MemObjIsMapping(RTR0MEMOBJ MemObj)
     193RTR0DECL(bool) RTR0MemObjIsMapping(RTR0MEMOBJ MemObj)
    194194{
    195195    return g_VBoxGuest->_RTR0MemObjIsMapping(MemObj);
    196196}
    197 int RTR0MemObjLockKernelTag(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
     197RTR0DECL(int) RTR0MemObjLockKernelTag(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    198198{
    199199    return g_VBoxGuest->_RTR0MemObjLockKernelTag(pMemObj, pv, cb, fAccess, pszTag);
    200200}
    201 int RTR0MemObjLockUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process, const char *pszTag)
     201RTR0DECL(int) RTR0MemObjLockUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process, const char *pszTag)
    202202{
    203203    return g_VBoxGuest->_RTR0MemObjLockUserTag(pMemObj, R3Ptr, cb, fAccess, R0Process, pszTag);
    204204}
    205 int RTR0MemObjMapKernelExTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, size_t offSub, size_t cbSub, const char *pszTag)
     205RTR0DECL(int) RTR0MemObjMapKernelExTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, size_t offSub, size_t cbSub, const char *pszTag)
    206206{
    207207    return g_VBoxGuest->_RTR0MemObjMapKernelExTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, offSub, cbSub, pszTag);
    208208}
    209 int RTR0MemObjMapKernelTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, const char *pszTag)
     209RTR0DECL(int) RTR0MemObjMapKernelTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, const char *pszTag)
    210210{
    211211    return g_VBoxGuest->_RTR0MemObjMapKernelTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, pszTag);
    212212}
    213 int RTR0MemObjMapUserTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, const char *pszTag)
     213RTR0DECL(int) RTR0MemObjMapUserTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, const char *pszTag)
    214214{
    215215    return g_VBoxGuest->_RTR0MemObjMapUserTag(pMemObj, MemObjToMap, R3PtrFixed, uAlignment, fProt, R0Process, pszTag);
    216216}
    217 int RTR0MemObjProtect(RTR0MEMOBJ hMemObj, size_t offSub, size_t cbSub, uint32_t fProt)
     217RTR0DECL(int) RTR0MemObjProtect(RTR0MEMOBJ hMemObj, size_t offSub, size_t cbSub, uint32_t fProt)
    218218{
    219219    return g_VBoxGuest->_RTR0MemObjProtect(hMemObj, offSub, cbSub, fProt);
    220220}
    221 int RTR0MemObjReserveKernelTag(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag)
     221RTR0DECL(int) RTR0MemObjReserveKernelTag(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag)
    222222{
    223223    return g_VBoxGuest->_RTR0MemObjReserveKernelTag(pMemObj, pvFixed, cb, uAlignment, pszTag);
    224224}
    225 int RTR0MemObjReserveUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, const char *pszTag)
     225RTR0DECL(int) RTR0MemObjReserveUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, const char *pszTag)
    226226{
    227227    return g_VBoxGuest->_RTR0MemObjReserveUserTag(pMemObj, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    228228}
    229 size_t RTR0MemObjSize(RTR0MEMOBJ MemObj)
     229RTR0DECL(size_t) RTR0MemObjSize(RTR0MEMOBJ MemObj)
    230230{
    231231    return g_VBoxGuest->_RTR0MemObjSize(MemObj);
    232232}
    233 RTR0PROCESS RTR0ProcHandleSelf(void)
     233RTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
    234234{
    235235    return g_VBoxGuest->_RTR0ProcHandleSelf();
    236236}
    237 void RTR0Term(void)
     237RTR0DECL(void) RTR0Term(void)
    238238{
    239239    g_VBoxGuest->_RTR0Term();
    240240}
    241 void RTR0TermForced(void)
     241RTR0DECL(void) RTR0TermForced(void)
    242242{
    243243    g_VBoxGuest->_RTR0TermForced();
    244244}
    245 RTPROCESS RTProcSelf(void)
     245RTDECL(RTPROCESS) RTProcSelf(void)
    246246{
    247247    return g_VBoxGuest->_RTProcSelf();
    248248}
    249 uint32_t RTSemEventGetResolution(void)
     249RTDECL(uint32_t) RTSemEventGetResolution(void)
    250250{
    251251    return g_VBoxGuest->_RTSemEventGetResolution();
    252252}
    253 uint32_t RTSemEventMultiGetResolution(void)
     253RTDECL(uint32_t) RTSemEventMultiGetResolution(void)
    254254{
    255255    return g_VBoxGuest->_RTSemEventMultiGetResolution();
    256256}
    257 int RTSemEventMultiWaitEx(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout)
     257RTDECL(int) RTSemEventMultiWaitEx(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout)
    258258{
    259259    return g_VBoxGuest->_RTSemEventMultiWaitEx(hEventMultiSem, fFlags, uTimeout);
    260260}
    261 int RTSemEventMultiWaitExDebug(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     261RTDECL(int) RTSemEventMultiWaitExDebug(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    262262{
    263263    return g_VBoxGuest->_RTSemEventMultiWaitExDebug(hEventMultiSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
    264264}
    265 int RTSemEventWaitEx(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout)
     265RTDECL(int) RTSemEventWaitEx(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout)
    266266{
    267267    return g_VBoxGuest->_RTSemEventWaitEx(hEventSem, fFlags, uTimeout);
    268268}
    269 int RTSemEventWaitExDebug(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     269RTDECL(int) RTSemEventWaitExDebug(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    270270{
    271271    return g_VBoxGuest->_RTSemEventWaitExDebug(hEventSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
    272272}
    273 bool RTThreadIsInInterrupt(RTTHREAD hThread)
     273RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread)
    274274{
    275275    return g_VBoxGuest->_RTThreadIsInInterrupt(hThread);
    276276}
    277 void RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState)
     277RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState)
    278278{
    279279    g_VBoxGuest->_RTThreadPreemptDisable(pState);
    280280}
    281 bool RTThreadPreemptIsEnabled(RTTHREAD hThread)
     281RTDECL(bool) RTThreadPreemptIsEnabled(RTTHREAD hThread)
    282282{
    283283    return g_VBoxGuest->_RTThreadPreemptIsEnabled(hThread);
    284284}
    285 bool RTThreadPreemptIsPending(RTTHREAD hThread)
     285RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread)
    286286{
    287287    return g_VBoxGuest->_RTThreadPreemptIsPending(hThread);
    288288}
    289 bool RTThreadPreemptIsPendingTrusty(void)
     289RTDECL(bool) RTThreadPreemptIsPendingTrusty(void)
    290290{
    291291    return g_VBoxGuest->_RTThreadPreemptIsPendingTrusty();
    292292}
    293 bool RTThreadPreemptIsPossible(void)
     293RTDECL(bool) RTThreadPreemptIsPossible(void)
    294294{
    295295    return g_VBoxGuest->_RTThreadPreemptIsPossible();
    296296}
    297 void RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState)
     297RTDECL(void) RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState)
    298298{
    299299    g_VBoxGuest->_RTThreadPreemptRestore(pState);
    300300}
    301 uint32_t RTTimerGetSystemGranularity(void)
     301RTDECL(uint32_t) RTTimerGetSystemGranularity(void)
    302302{
    303303    return g_VBoxGuest->_RTTimerGetSystemGranularity();
    304304}
    305 int RTTimerReleaseSystemGranularity(uint32_t u32Granted)
     305RTDECL(int) RTTimerReleaseSystemGranularity(uint32_t u32Granted)
    306306{
    307307    return g_VBoxGuest->_RTTimerReleaseSystemGranularity(u32Granted);
    308308}
    309 int RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted)
     309RTDECL(int) RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted)
    310310{
    311311    return g_VBoxGuest->_RTTimerRequestSystemGranularity(u32Request, pu32Granted);
    312312}
    313 void RTSpinlockAcquire(RTSPINLOCK Spinlock)
     313RTDECL(void) RTSpinlockAcquire(RTSPINLOCK Spinlock)
    314314{
    315315    g_VBoxGuest->_RTSpinlockAcquire(Spinlock);
    316316}
    317 void RTSpinlockRelease(RTSPINLOCK Spinlock)
     317RTDECL(void) RTSpinlockRelease(RTSPINLOCK Spinlock)
    318318{
    319319    g_VBoxGuest->_RTSpinlockRelease(Spinlock);
    320320}
    321 void RTSpinlockReleaseNoInts(RTSPINLOCK Spinlock)
     321RTDECL(void) RTSpinlockReleaseNoInts(RTSPINLOCK Spinlock)
    322322{
    323323    g_VBoxGuest->_RTSpinlockReleaseNoInts(Spinlock);
    324324}
    325 void* RTMemTmpAllocTag(size_t cb, const char *pszTag)
     325RTDECL(void*) RTMemTmpAllocTag(size_t cb, const char *pszTag)
    326326{
    327327    return g_VBoxGuest->_RTMemTmpAllocTag(cb, pszTag);
    328328}
    329 void RTMemTmpFree(void *pv)
     329RTDECL(void) RTMemTmpFree(void *pv)
    330330{
    331331    g_VBoxGuest->_RTMemTmpFree(pv);
    332332}
    333 PRTLOGGER RTLogDefaultInstance(void)
     333RTDECL(PRTLOGGER) RTLogDefaultInstance(void)
    334334{
    335335    return g_VBoxGuest->_RTLogDefaultInstance();
    336336}
    337 PRTLOGGER RTLogRelDefaultInstance(void)
     337RTDECL(PRTLOGGER) RTLogRelDefaultInstance(void)
    338338{
    339339    return g_VBoxGuest->_RTLogRelDefaultInstance();
    340340}
    341 int RTErrConvertToErrno(int iErr)
     341RTDECL(int) RTErrConvertToErrno(int iErr)
    342342{
    343343    return g_VBoxGuest->_RTErrConvertToErrno(iErr);
     
    367367    return g_VBoxGuest->_VBoxGuestIDCCall(pvSession, iCmd, pvData, cbData, pcbDataReturned);
    368368}
    369 void RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
     369RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    370370{
    371371    g_VBoxGuest->_RTAssertMsg1Weak(pszExpr, uLine, pszFile, pszFunction);
    372372}
    373 void RTAssertMsg2Weak(const char *pszFormat, ...)
     373RTDECL(void) RTAssertMsg2Weak(const char *pszFormat, ...)
    374374{
    375375    va_list va;
     
    378378    va_end(va);
    379379}
    380 void RTAssertMsg2WeakV(const char *pszFormat, va_list va)
     380RTDECL(void) RTAssertMsg2WeakV(const char *pszFormat, va_list va)
    381381{
    382382    g_VBoxGuest->_RTAssertMsg2WeakV(pszFormat, va);
    383383}
    384 bool RTAssertShouldPanic(void)
     384RTDECL(bool) RTAssertShouldPanic(void)
    385385{
    386386    return g_VBoxGuest->_RTAssertShouldPanic();
    387387}
    388 int RTSemFastMutexCreate(PRTSEMFASTMUTEX phFastMtx)
     388RTDECL(int) RTSemFastMutexCreate(PRTSEMFASTMUTEX phFastMtx)
    389389{
    390390    return g_VBoxGuest->_RTSemFastMutexCreate(phFastMtx);
    391391}
    392 int RTSemFastMutexDestroy(RTSEMFASTMUTEX hFastMtx)
     392RTDECL(int) RTSemFastMutexDestroy(RTSEMFASTMUTEX hFastMtx)
    393393{
    394394    return g_VBoxGuest->_RTSemFastMutexDestroy(hFastMtx);
    395395}
    396 int RTSemFastMutexRelease(RTSEMFASTMUTEX hFastMtx)
     396RTDECL(int) RTSemFastMutexRelease(RTSEMFASTMUTEX hFastMtx)
    397397{
    398398    return g_VBoxGuest->_RTSemFastMutexRelease(hFastMtx);
    399399}
    400 int RTSemFastMutexRequest(RTSEMFASTMUTEX hFastMtx)
     400RTDECL(int) RTSemFastMutexRequest(RTSEMFASTMUTEX hFastMtx)
    401401{
    402402    return g_VBoxGuest->_RTSemFastMutexRequest(hFastMtx);
    403403}
    404 int RTSemMutexCreate(PRTSEMMUTEX phFastMtx)
     404RTDECL(int) RTSemMutexCreate(PRTSEMMUTEX phFastMtx)
    405405{
    406406    return g_VBoxGuest->_RTSemMutexCreate(phFastMtx);
    407407}
    408 int RTSemMutexDestroy(RTSEMMUTEX hFastMtx)
     408RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX hFastMtx)
    409409{
    410410    return g_VBoxGuest->_RTSemMutexDestroy(hFastMtx);
    411411}
    412 int RTSemMutexRelease(RTSEMMUTEX hFastMtx)
     412RTDECL(int) RTSemMutexRelease(RTSEMMUTEX hFastMtx)
    413413{
    414414    return g_VBoxGuest->_RTSemMutexRelease(hFastMtx);
    415415}
    416 int RTSemMutexRequest(RTSEMMUTEX hFastMtx, RTMSINTERVAL cMillies)
     416RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hFastMtx, RTMSINTERVAL cMillies)
    417417{
    418418    return g_VBoxGuest->_RTSemMutexRequest(hFastMtx, cMillies);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette