Back to index

lightning-sunbird  0.9+nobinonly
nsObsoleteModuleLoading.h
Go to the documentation of this file.
00001 
00002 #ifndef OBSOLETE_MODULE_LOADING
00003 /*
00004  * Prototypes for dynamic library export functions. Your DLL/DSO needs to export
00005  * these methods to play in the component world.
00006  *
00007  * THIS IS OBSOLETE. Look at nsIModule.idl
00008  */
00009 
00010 extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* aServMgr,
00011                                            const nsCID &aClass,
00012                                            const char *aClassName,
00013                                            const char *aContractID,
00014                                            nsIFactory **aFactory);
00015 extern "C" NS_EXPORT PRBool   NSCanUnload(nsISupports* aServMgr);
00016 extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *fullpath);
00017 extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char *fullpath);
00018 
00019 typedef nsresult (*nsFactoryProc)(nsISupports* aServMgr,
00020                                   const nsCID &aClass,
00021                                   const char *aClassName,
00022                                   const char *aContractID,
00023                                   nsIFactory **aFactory);
00024 typedef PRBool   (*nsCanUnloadProc)(nsISupports* aServMgr);
00025 typedef nsresult (*nsRegisterProc)(nsISupports* aServMgr, const char *path);
00026 typedef nsresult (*nsUnregisterProc)(nsISupports* aServMgr, const char *path);
00027 #endif /* OBSOLETE_MODULE_LOADING */