Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsXPCOM.d @ 291:b0bd1789106b
fix: added wrong directory :(
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Wed, 06 Aug 2008 18:29:44 -0700 |
parents | |
children | 3dfa75c74ed2 |
comparison
equal
deleted
inserted
replaced
290:4c1340edee0d | 291:b0bd1789106b |
---|---|
1 | |
2 module dwt.internal.mozilla.nsXPCOM; | |
3 | |
4 import dwt.internal.mozilla.Common; | |
5 import dwt.internal.mozilla.nsStringAPI; | |
6 import dwt.internal.mozilla.nsIModule; | |
7 import dwt.internal.mozilla.nsIComponentManager; | |
8 import dwt.internal.mozilla.nsIComponentRegistrar; | |
9 import dwt.internal.mozilla.nsIServiceManager; | |
10 import dwt.internal.mozilla.nsIFile; | |
11 import dwt.internal.mozilla.nsILocalFile; | |
12 import dwt.internal.mozilla.nsIDirectoryService; | |
13 import dwt.internal.mozilla.nsIMemory; | |
14 import dwt.internal.mozilla.nsIDebug; | |
15 import dwt.internal.mozilla.nsITraceRefcnt; | |
16 | |
17 /****************************************************************************** | |
18 | |
19 ******************************************************************************/ | |
20 | |
21 extern (System): | |
22 | |
23 struct nsStaticModuleInfo | |
24 { | |
25 char *name; | |
26 nsGetModuleProc getModule; | |
27 } | |
28 | |
29 alias nsresult function (nsIComponentManager, nsIFile, nsIModule*) nsGetModuleProc; | |
30 | |
31 /****************************************************************************** | |
32 | |
33 ******************************************************************************/ | |
34 | |
35 nsresult NS_InitXPCOM2( nsIServiceManager *result, nsIFile binDirectory, | |
36 nsIDirectoryServiceProvider appFileLocationProvider ); | |
37 nsresult NS_InitXPCOM3( nsIServiceManager *result, nsIFile binDirectory, | |
38 nsIDirectoryServiceProvider appFileLocationProvider, | |
39 nsStaticModuleInfo* staticComponents, | |
40 PRUint32 componentCount ); | |
41 | |
42 nsresult NS_ShutdownXPCOM(nsIServiceManager servMgr); | |
43 nsresult NS_GetServiceManager(nsIServiceManager *result); | |
44 nsresult NS_GetComponentManager(nsIComponentManager *result); | |
45 nsresult NS_GetComponentRegistrar(nsIComponentRegistrar *result); | |
46 nsresult NS_GetMemoryManager(nsIMemory *result); | |
47 nsresult NS_NewLocalFile(inout nsAString path, PRBool followLinks, nsILocalFile* result); | |
48 nsresult NS_NewNativeLocalFile(inout nsACString path, PRBool followLinks, nsILocalFile* result); | |
49 void * NS_Alloc(PRSize size); | |
50 void * NS_Realloc(void *ptr, PRSize size); | |
51 void NS_Free(void *ptr); | |
52 nsresult NS_GetDebug(nsIDebug *result); | |
53 nsresult NS_GetTraceRefcnt(nsITraceRefcnt *result); |