VirtualBox

Changeset 11551 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Aug 21, 2008 5:16:02 PM (16 years ago)
Author:
vboxsync
Message:

API/xpcom: prefix any C symbols in VBoxXPCOM.so, to avoid namespace pollution. Enabled only on Linux at the moment.

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nsTraceRefcntImpl.h

    r1 r11551  
    4141#include <stdio.h> // for FILE
    4242#include "nsITraceRefcnt.h"
     43
     44#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     45#define NS_MeanAndStdDev VBoxNsxpNS_MeanAndStdDev
     46#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4347
    4448class nsTraceRefcntImpl : public nsITraceRefcnt
  • trunk/src/libs/xpcom18a4/xpcom/build/nsXPCOM.h

    r1 r11551  
    4141#include "nscore.h"
    4242#include "nsXPCOMCID.h"
     43
     44#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     45#define NS_InitXPCOM2 VBoxNsxpNS_InitXPCOM2
     46#define NS_ShutdownXPCOM VBoxNsxpNS_ShutdownXPCOM
     47#define NS_NewNativeLocalFile VBoxNsxpNS_NewNativeLocalFile
     48#define NS_GetServiceManager VBoxNsxpNS_GetServiceManager
     49#define NS_GetComponentManager VBoxNsxpNS_GetComponentManager
     50#define NS_GetComponentRegistrar VBoxNsxpNS_GetComponentRegistrar
     51#define NS_GetDebug VBoxNsxpNS_GetDebug
     52#define NS_GetMemoryManager VBoxNsxpNS_GetMemoryManager
     53#define NS_GetTraceRefcnt VBoxNsxpNS_GetTraceRefcnt
     54#define NS_NewLocalFile VBoxNsxpNS_NewLocalFile
     55#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4356
    4457class nsAString;
  • trunk/src/libs/xpcom18a4/xpcom/build/nsXPCOMPrivate.h

    r3372 r11551  
    4545class nsStringContainer;
    4646class nsCStringContainer;
     47
     48#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     49#define NS_GetFrozenFunctions VBoxNsxpNS_GetFrozenFunctions
     50#define NS_RegisterXPCOMExitRoutine VBoxNsxpNS_RegisterXPCOMExitRoutine
     51#define NS_UnregisterXPCOMExitRoutine VBoxNsxpNS_UnregisterXPCOMExitRoutine
     52#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4753
    4854/**
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsEnumeratorUtils.h

    r1 r11551  
    4141#include "nsIEnumerator.h"
    4242#include "nsISupportsArray.h"
     43
     44#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     45#define NS_NewSingletonEnumerator VBoxNsxpNS_NewSingletonEnumerator
     46#define NS_NewUnionEnumerator VBoxNsxpNS_NewUnionEnumerator
     47#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4348
    4449class NS_COM nsArrayEnumerator : public nsISimpleEnumerator
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsIEnumerator.idl

    r1 r11551  
    4040%{C++
    4141#define NS_ENUMERATOR_FALSE 1
     42
     43#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     44#define NS_NewEmptyEnumerator VBoxNsxpNS_NewEmptyEnumerator
     45#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
     46
    4247extern "C" NS_COM nsresult
    4348NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult);
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsQuickSort.h

    r1 r11551  
    4545
    4646#include "prtypes.h"
     47
     48#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     49#define NS_QuickSort VBoxNsxpNS_QuickSort
     50#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
     51
    4752PR_BEGIN_EXTERN_C
    4853
  • trunk/src/libs/xpcom18a4/xpcom/ds/pldhash.h

    r1 r11551  
    4444 */
    4545#include "prtypes.h"
     46
     47#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     48#define PL_DHashTableInit VBoxNsplPL_DHashTableInit
     49#define PL_DHashTableFinish VBoxNsplPL_DHashTableFinish
     50#define PL_DHashTableOperate VBoxNsplPL_DHashTableOperate
     51#define PL_DHashTableEnumerate VBoxNsplPL_DHashTableEnumerate
     52#define PL_DHashAllocTable VBoxNsplPL_DHashAllocTable
     53#define PL_DHashFreeTable VBoxNsplPL_DHashFreeTable
     54#define PL_DHashMoveEntryStub VBoxNsplPL_DHashMoveEntryStub
     55#define PL_DHashFinalizeStub VBoxNsplPL_DHashFinalizeStub
     56#define PL_DHashClearEntryStub VBoxNsplPL_DHashClearEntryStub
     57#define PL_DHashFreeStringKey VBoxNsplPL_DHashFreeStringKey
     58#define PL_DHashGetKeyStub VBoxNsplPL_DHashGetKeyStub
     59#define PL_DHashGetStubOps VBoxNsplPL_DHashGetStubOps
     60#define PL_DHashMatchEntryStub VBoxNsplPL_DHashMatchEntryStub
     61#define PL_DHashMatchStringKey VBoxNsplPL_DHashMatchStringKey
     62#define PL_DHashStringKey VBoxNsplPL_DHashStringKey
     63#define PL_DHashTableDestroy VBoxNsplPL_DHashTableDestroy
     64#define PL_DHashTableRawRemove VBoxNsplPL_DHashTableRawRemove
     65#define PL_DHashTableSetAlphaBounds VBoxNsplPL_DHashTableSetAlphaBounds
     66#define PL_DHashVoidPtrKeyStub VBoxNsplPL_DHashVoidPtrKeyStub
     67#define PL_NewDHashTable VBoxNsplPL_NewDHashTable
     68#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4669
    4770PR_BEGIN_EXTERN_C
  • trunk/src/libs/xpcom18a4/xpcom/io/nsIStringStream.idl

    r1 r11551  
    101101#include "nsString.h"
    102102
     103#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     104#define NS_NewByteInputStream VBoxNsxpNS_NewByteInputStream
     105#define NS_NewCStringInputStream VBoxNsxpNS_NewCStringInputStream
     106#define NS_NewCharInputStream VBoxNsxpNS_NewCharInputStream
     107#define NS_NewStringInputStream VBoxNsxpNS_NewStringInputStream
     108#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
     109
    103110//-----------------------------------------------------------------------------
    104111// Factory method to get an nsInputStream from an nsAString.  Result will
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h

    r3149 r11551  
    4747#include "xptinfo.h"
    4848#include "nsIInterfaceInfo.h"
     49
     50#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     51#define XPTC_InvokeByIndex VBoxNsxpXPTC_InvokeByIndex
     52#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4953
    5054/***************************************************************************/
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/xptinfo.h

    r3149 r11551  
    4343#include "prtypes.h"
    4444#include "xpt_struct.h"
     45
     46#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     47#define XPTI_GetInterfaceInfoManager VBoxNsxpXPTI_GetInterfaceInfoManager
     48#define XPTI_FreeInterfaceInfoManager VBoxNsxpXPTI_FreeInterfaceInfoManager
     49#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4550
    4651/*
  • trunk/src/libs/xpcom18a4/xpcom/string/public/nsStringAPI.h

    r1 r11551  
    4848
    4949#include "nscore.h"
     50
     51#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     52#define NS_CStringContainerInit VBoxNsxpNS_CStringContainerInit
     53#define NS_CStringContainerFinish VBoxNsxpNS_CStringContainerFinish
     54#define NS_CStringCloneData VBoxNsxpNS_CStringCloneData
     55#define NS_CStringCopy VBoxNsxpNS_CStringCopy
     56#define NS_CStringGetData VBoxNsxpNS_CStringGetData
     57#define NS_CStringSetData VBoxNsxpNS_CStringSetData
     58#define NS_CStringSetDataRange VBoxNsxpNS_CStringSetDataRange
     59#define NS_UTF16ToCString VBoxNsxpNS_UTF16ToCString
     60#define NS_CStringToUTF16 VBoxNsxpNS_CStringToUTF16
     61#define NS_StringContainerInit VBoxNsxpNS_StringContainerInit
     62#define NS_StringContainerFinish VBoxNsxpNS_StringContainerFinish
     63#define NS_StringCloneData VBoxNsxpNS_StringCloneData
     64#define NS_StringCopy VBoxNsxpNS_StringCopy
     65#define NS_StringGetData VBoxNsxpNS_StringGetData
     66#define NS_StringSetData VBoxNsxpNS_StringSetData
     67#define NS_StringSetDataRange VBoxNsxpNS_StringSetDataRange
     68#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    5069
    5170#define NS_STRINGAPI(x) extern "C" NS_COM x
  • trunk/src/libs/xpcom18a4/xpcom/threads/plevent.h

    r1 r11551  
    201201#include <os2.h>
    202202#endif
     203
     204#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     205#define PL_DestroyEvent VBoxNsplPL_DestroyEvent
     206#define PL_HandleEvent VBoxNsplPL_HandleEvent
     207#define PL_InitEvent VBoxNsplPL_InitEvent
     208#define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue
     209#define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQueue
     210#define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue
     211#define PL_DequeueEvent VBoxNsplPL_DequeueEvent
     212#define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue
     213#define PL_EventAvailable VBoxNsplPL_EventAvailable
     214#define PL_EventLoop VBoxNsplPL_EventLoop
     215#define PL_GetEvent VBoxNsplPL_GetEvent
     216#define PL_GetEventOwner VBoxNsplPL_GetEventOwner
     217#define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor
     218#define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD
     219#define PL_MapEvents VBoxNsplPL_MapEvents
     220#define PL_PostEvent VBoxNsplPL_PostEvent
     221#define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent
     222#define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID
     223#define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents
     224#define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc
     225#define PL_RevokeEvents VBoxNsplPL_RevokeEvents
     226#define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc
     227#define PL_WaitForEvent VBoxNsplPL_WaitForEvent
     228#define PL_IsQueueNative VBoxNsplPL_IsQueueNative
     229#define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread
     230#define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint
     231#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    203232
    204233PR_BEGIN_EXTERN_C
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/public/xpt_arena.h

    r1 r11551  
    4646#include <stdlib.h>
    4747
     48#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     49#define XPT_NewArena VBoxNsxpXPT_NewArena
     50#define XPT_ArenaMalloc VBoxNsxpXPT_ArenaMalloc
     51#define XPT_DestroyArena VBoxNsxpXPT_DestroyArena
     52#define XPT_ArenaFree VBoxNsxpXPT_ArenaFree
     53#define XPT_DestroyArena VBoxNsxpXPT_DestroyArena
     54#define XPT_DumpStats VBoxNsxpXPT_DumpStats
     55#define XPT_NotifyDoneLoading VBoxNsxpXPT_NotifyDoneLoading
     56#define XPT_ArenaStrDup VBoxNsxpXPT_ArenaStrDup
     57#define XPT_AssertFailed VBoxNsxpXPT_AssertFailed
     58#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4859
    4960/*
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/public/xpt_struct.h

    r1 r11551  
    4545
    4646#include "xpt_arena.h"
     47
     48#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     49#define XPT_NewHeader VBoxNsxpXPT_NewHeader
     50#define XPT_NewStringZ VBoxNsxpXPT_NewStringZ
     51#define XPT_NewAnnotation VBoxNsxpXPT_NewAnnotation
     52#define XPT_SizeOfHeaderBlock VBoxNsxpXPT_SizeOfHeaderBlock
     53#define XPT_NewInterfaceDescriptor VBoxNsxpXPT_NewInterfaceDescriptor
     54#define XPT_FillInterfaceDirectoryEntry VBoxNsxpXPT_FillInterfaceDirectoryEntry
     55#define XPT_FillMethodDescriptor VBoxNsxpXPT_FillMethodDescriptor
     56#define XPT_FreeHeader VBoxNsxpXPT_FreeHeader
     57#define XPT_ParseVersionString VBoxNsxpXPT_ParseVersionString
     58#define XPT_DestroyInterfaceDirectoryEntry VBoxNsxpXPT_DestroyInterfaceDirectoryEntry
     59#define XPT_FillParamDescriptor VBoxNsxpXPT_FillParamDescriptor
     60#define XPT_FreeInterfaceDescriptor VBoxNsxpXPT_FreeInterfaceDescriptor
     61#define XPT_InterfaceDescriptorAddConsts VBoxNsxpXPT_InterfaceDescriptorAddConsts
     62#define XPT_InterfaceDescriptorAddMethods VBoxNsxpXPT_InterfaceDescriptorAddMethods
     63#define XPT_InterfaceDescriptorAddTypes VBoxNsxpXPT_InterfaceDescriptorAddTypes
     64#define XPT_GetInterfaceIndexByName VBoxNsxpXPT_GetInterfaceIndexByName
     65#define XPT_NewString VBoxNsxpXPT_NewString
     66#define XPT_SizeOfHeader VBoxNsxpXPT_SizeOfHeader
     67#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4768
    4869PR_BEGIN_EXTERN_C
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/public/xpt_xdr.h

    r1 r11551  
    4444
    4545#include "xpt_struct.h"
     46
     47#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     48#define XPT_Do8 VBoxNsxpXPT_Do8
     49#define XPT_Do16 VBoxNsxpXPT_Do16
     50#define XPT_Do32 VBoxNsxpXPT_Do32
     51#define XPT_Do64 VBoxNsxpXPT_Do64
     52#define XPT_DoIID VBoxNsxpXPT_DoIID
     53#define XPT_DoCString VBoxNsxpXPT_DoCString
     54#define XPT_DoString VBoxNsxpXPT_DoString
     55#define XPT_DoStringInline VBoxNsxpXPT_DoStringInline
     56#define XPT_NewXDRState VBoxNsxpXPT_NewXDRState
     57#define XPT_SetDataOffset VBoxNsxpXPT_SetDataOffset
     58#define XPT_SeekTo VBoxNsxpXPT_SeekTo
     59#define XPT_MakeCursor VBoxNsxpXPT_MakeCursor
     60#define XPT_DestroyXDRState VBoxNsxpXPT_DestroyXDRState
     61#define XPT_GetXDRData VBoxNsxpXPT_GetXDRData
     62#define XPT_GetXDRDataLength VBoxNsxpXPT_GetXDRDataLength
     63#define XPT_DoHeader VBoxNsxpXPT_DoHeader
     64#define XPT_DoHeaderPrologue VBoxNsxpXPT_DoHeaderPrologue
     65#define XPT_UpdateFileLength VBoxNsxpXPT_UpdateFileLength
     66#define XPT_DataOffset VBoxNsxpXPT_DataOffset
     67#define XPT_GetOffsetForAddr VBoxNsxpXPT_GetOffsetForAddr
     68#define XPT_SetOffsetForAddr VBoxNsxpXPT_SetOffsetForAddr
     69#define XPT_SetAddrForOffset VBoxNsxpXPT_SetAddrForOffset
     70#define XPT_GetAddrForOffset VBoxNsxpXPT_GetAddrForOffset
     71#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    4672
    4773PR_BEGIN_EXTERN_C
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