~ubuntu-branches/ubuntu/gutsy/virtualbox-ose/gutsy

« back to all changes in this revision

Viewing changes to src/libs/xpcom18a4/xpcom/components/nsObsoleteModuleLoading.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-09-08 16:44:58 UTC
  • Revision ID: james.westby@ubuntu.com-20070908164458-wao29470vqtr8ksy
Tags: upstream-1.5.0-dfsg2
ImportĀ upstreamĀ versionĀ 1.5.0-dfsg2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef OBSOLETE_MODULE_LOADING
 
3
/*
 
4
 * Prototypes for dynamic library export functions. Your DLL/DSO needs to export
 
5
 * these methods to play in the component world.
 
6
 *
 
7
 * THIS IS OBSOLETE. Look at nsIModule.idl
 
8
 */
 
9
 
 
10
extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* aServMgr,
 
11
                                           const nsCID &aClass,
 
12
                                           const char *aClassName,
 
13
                                           const char *aContractID,
 
14
                                           nsIFactory **aFactory);
 
15
extern "C" NS_EXPORT PRBool   NSCanUnload(nsISupports* aServMgr);
 
16
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *fullpath);
 
17
extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char *fullpath);
 
18
 
 
19
typedef nsresult (*nsFactoryProc)(nsISupports* aServMgr,
 
20
                                  const nsCID &aClass,
 
21
                                  const char *aClassName,
 
22
                                  const char *aContractID,
 
23
                                  nsIFactory **aFactory);
 
24
typedef PRBool   (*nsCanUnloadProc)(nsISupports* aServMgr);
 
25
typedef nsresult (*nsRegisterProc)(nsISupports* aServMgr, const char *path);
 
26
typedef nsresult (*nsUnregisterProc)(nsISupports* aServMgr, const char *path);
 
27
#endif /* OBSOLETE_MODULE_LOADING */