Changeset 50369 in vbox for trunk/src/VBox/Main/src-server/xpcom
- Timestamp:
- Feb 7, 2014 4:16:41 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92122
- Location:
- trunk/src/VBox/Main/src-server/xpcom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/xpcom/server.cpp
r50355 r50369 5 5 6 6 /* 7 * Copyright (C) 2004-201 3Oracle Corporation7 * Copyright (C) 2004-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 95 95 # include "NATNetworkImpl.h" 96 96 97 // This needs to stay - it is needed by the service registration below, and 98 // is defined in the automatically generated VirtualBoxWrap.cpp 99 extern nsIClassInfo *NS_CLASSINFO_NAME(VirtualBoxWrap); 100 NS_DECL_CI_INTERFACE_GETTER(VirtualBoxWrap) 101 102 // The declarations/implementations of the various XPCOM helper data structures 103 // and functions have to be removed bit by bit, as the conversion to the 104 // automatically generated wrappers makes them obsolete. 97 105 98 106 /* implement nsISupports parts of our objects with support for nsIClassInfo */ … … 834 842 NULL, // deregistration function 835 843 VirtualBoxClassFactory::FactoryDestructor, // factory destructor function 836 NS_CI_INTERFACE_GETTER_NAME(VirtualBox ),844 NS_CI_INTERFACE_GETTER_NAME(VirtualBoxWrap), 837 845 NULL, // language helper 838 &NS_CLASSINFO_NAME(VirtualBox ),846 &NS_CLASSINFO_NAME(VirtualBoxWrap), 839 847 0 // flags 840 848 }; … … 856 864 } 857 865 858 nsCOMPtr 866 nsCOMPtr<nsIComponentRegistrar> registrar; 859 867 rc = NS_GetComponentRegistrar(getter_AddRefs(registrar)); 860 868 if (NS_FAILED(rc)) -
trunk/src/VBox/Main/src-server/xpcom/server.h
r50359 r50369 35 35 36 36 #endif /* ____H_LINUX_SERVER */ 37 38 /**39 * Implements NSGetInterfacesProcPtr (nsIGenericFactory.h)40 * @note: declaration in nsIGenericFactory.h asks for zeroing41 * count and array, if returning of list of interfaces isn't supported.42 */43 HRESULT VirtualBox_GetInterfacesHelper(PRUint32 *count, nsIID** *array)44 {45 if (count != NULL) *count = 0;46 if (array != NULL) *array = NULL;47 48 return S_OK;49 }50 nsIClassInfo* VirtualBox_classInfoGlobal; -
trunk/src/VBox/Main/src-server/xpcom/server_module.cpp
r50355 r50369 91 91 * in sync with macros used for VirtualBox in server.cpp for the same purpose. 92 92 */ 93 94 NS_DECL_CLASSINFO(VirtualBoxWrap) 95 NS_IMPL_CI_INTERFACE_GETTER1(VirtualBoxWrap, IVirtualBox) 93 96 94 97 static nsresult vboxsvcSpawnDaemon(void) … … 361 364 NULL, // destructor function 362 365 /// @todo 363 NS_CI_INTERFACE_GETTER_NAME(VirtualBox ), // interfaces function366 NS_CI_INTERFACE_GETTER_NAME(VirtualBoxWrap), // interfaces function 364 367 NULL, // language helper 365 368 /// @todo 366 &NS_CLASSINFO_NAME(VirtualBox ) // global class info & flags369 &NS_CLASSINFO_NAME(VirtualBoxWrap) // global class info & flags 367 370 } 368 371 };
Note:
See TracChangeset
for help on using the changeset viewer.