Changeset 11815 in vbox for trunk/src/libs
- Timestamp:
- Aug 29, 2008 1:08:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/build/nsXPComInit.cpp
r1 r11815 981 981 nsresult rv = NS_ERROR_FAILURE; 982 982 983 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 984 GET_FUNC(init, InitFunc, "VBoxNsxpNS_InitXPCOM2"); 985 GET_FUNC(shutdown, ShutdownFunc, "VBoxNsxpNS_ShutdownXPCOM"); 986 GET_FUNC(getServiceManager, GetServiceManagerFunc, "VBoxNsxpNS_GetServiceManager"); 987 GET_FUNC(getComponentManager, GetComponentManagerFunc, "VBoxNsxpNS_GetComponentManager"); 988 GET_FUNC(getComponentRegistrar, GetComponentRegistrarFunc, "VBoxNsxpNS_GetComponentRegistrar"); 989 GET_FUNC(getMemoryManager, GetMemoryManagerFunc, "VBoxNsxpNS_GetMemoryManager"); 990 GET_FUNC(newLocalFile, NewLocalFileFunc, "VBoxNsxpNS_NewLocalFile"); 991 GET_FUNC(newNativeLocalFile, NewNativeLocalFileFunc, "VBoxNsxpNS_NewNativeLocalFile"); 992 GET_FUNC(registerExitRoutine, RegisterXPCOMExitRoutineFunc, "VBoxNsxpNS_RegisterXPCOMExitRoutine"); 993 GET_FUNC(unregisterExitRoutine, UnregisterXPCOMExitRoutineFunc, "VBoxNsxpNS_UnregisterXPCOMExitRoutine"); 994 #else /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 983 995 GET_FUNC(init, InitFunc, "NS_InitXPCOM2"); 984 996 GET_FUNC(shutdown, ShutdownFunc, "NS_ShutdownXPCOM"); … … 991 1003 GET_FUNC(registerExitRoutine, RegisterXPCOMExitRoutineFunc, "NS_RegisterXPCOMExitRoutine"); 992 1004 GET_FUNC(unregisterExitRoutine, UnregisterXPCOMExitRoutineFunc, "NS_UnregisterXPCOMExitRoutine"); 1005 #endif /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 993 1006 994 1007 // these functions were added post 1.4 (need to check size of |functions|) 995 1008 if (functions->size > offsetof(XPCOMFunctions, getTraceRefcnt)) { 1009 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 1010 GET_FUNC(getDebug, GetDebugFunc, "VBoxNsxpNS_GetDebug"); 1011 GET_FUNC(getTraceRefcnt, GetTraceRefcntFunc, "VBoxNsxpNS_GetTraceRefcnt"); 1012 #else /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 996 1013 GET_FUNC(getDebug, GetDebugFunc, "NS_GetDebug"); 997 1014 GET_FUNC(getTraceRefcnt, GetTraceRefcntFunc, "NS_GetTraceRefcnt"); 1015 #endif /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 998 1016 } 999 1017 1000 1018 // these functions were added post 1.6 (need to check size of |functions|) 1001 1019 if (functions->size > offsetof(XPCOMFunctions, cstringCloneData)) { 1020 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 1021 GET_FUNC(stringContainerInit, StringContainerInitFunc, "VBoxNsxpNS_StringContainerInit"); 1022 GET_FUNC(stringContainerFinish, StringContainerFinishFunc, "VBoxNsxpNS_StringContainerFinish"); 1023 GET_FUNC(stringGetData, StringGetDataFunc, "VBoxNsxpNS_StringGetData"); 1024 GET_FUNC(stringSetData, StringSetDataFunc, "VBoxNsxpNS_StringSetData"); 1025 GET_FUNC(stringSetDataRange, StringSetDataRangeFunc, "VBoxNsxpNS_StringSetDataRange"); 1026 GET_FUNC(stringCopy, StringCopyFunc, "VBoxNsxpNS_StringCopy"); 1027 GET_FUNC(cstringContainerInit, CStringContainerInitFunc, "VBoxNsxpNS_CStringContainerInit"); 1028 GET_FUNC(cstringContainerFinish, CStringContainerFinishFunc, "VBoxNsxpNS_CStringContainerFinish"); 1029 GET_FUNC(cstringGetData, CStringGetDataFunc, "VBoxNsxpNS_CStringGetData"); 1030 GET_FUNC(cstringSetData, CStringSetDataFunc, "VBoxNsxpNS_CStringSetData"); 1031 GET_FUNC(cstringSetDataRange, CStringSetDataRangeFunc, "VBoxNsxpNS_CStringSetDataRange"); 1032 GET_FUNC(cstringCopy, CStringCopyFunc, "VBoxNsxpNS_CStringCopy"); 1033 GET_FUNC(cstringToUTF16, CStringToUTF16, "VBoxNsxpNS_CStringToUTF16"); 1034 GET_FUNC(utf16ToCString, UTF16ToCString, "VBoxNsxpNS_UTF16ToCString"); 1035 GET_FUNC(stringCloneData, StringCloneDataFunc, "VBoxNsxpNS_StringCloneData"); 1036 GET_FUNC(cstringCloneData, CStringCloneDataFunc, "VBoxNsxpNS_CStringCloneData"); 1037 #else /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 1002 1038 GET_FUNC(stringContainerInit, StringContainerInitFunc, "NS_StringContainerInit"); 1003 1039 GET_FUNC(stringContainerFinish, StringContainerFinishFunc, "NS_StringContainerFinish"); … … 1016 1052 GET_FUNC(stringCloneData, StringCloneDataFunc, "NS_StringCloneData"); 1017 1053 GET_FUNC(cstringCloneData, CStringCloneDataFunc, "NS_CStringCloneData"); 1054 #endif /* !VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 1018 1055 } 1019 1056
Note:
See TracChangeset
for help on using the changeset viewer.