view dwt/internal/mozilla/nsXPCOM.d @ 278:93409d9838c5

Commit more browser/xpcom updates, including still uncoverted source.
author John Reimer<terminal.node@gmail.com>
date Thu, 31 Jul 2008 19:17:51 -0700
parents dd63eb078d7a
children 44258e0b6687 3dfa75c74ed2
line wrap: on
line source

/******************************************************************************

module dwt.internal.mozilla.nsXPCOM;

import dwt.internal.mozilla.Common;
import dwt.internal.mozilla.nsStringAPI;
import dwt.internal.mozilla.nsIModule;
import dwt.internal.mozilla.nsIComponentManager;
import dwt.internal.mozilla.nsIComponentRegistrar;
import dwt.internal.mozilla.nsIServiceManager;
import dwt.internal.mozilla.nsIFile;
import dwt.internal.mozilla.nsILocalFile;
import dwt.internal.mozilla.nsIDirectoryService;
import dwt.internal.mozilla.nsIMemory;
import dwt.internal.mozilla.nsIDebug;
import dwt.internal.mozilla.nsITraceRefcnt;

/******************************************************************************

******************************************************************************/

extern (System):

struct nsStaticModuleInfo
{
    char *name;
    nsGetModuleProc getModule;
}

alias nsresult function (nsIComponentManager, nsIFile, nsIModule*) nsGetModuleProc;

/******************************************************************************

******************************************************************************/

nsresult  NS_InitXPCOM2( nsIServiceManager *result, nsIFile binDirectory,
	                     nsIDirectoryServiceProvider appFileLocationProvider );
nsresult  NS_InitXPCOM3( nsIServiceManager *result, nsIFile binDirectory,
	                     nsIDirectoryServiceProvider appFileLocationProvider,
	                     nsStaticModuleInfo* staticComponents,
	                     PRUint32 componentCount );

nsresult  NS_ShutdownXPCOM(nsIServiceManager servMgr);
nsresult  NS_GetServiceManager(nsIServiceManager *result);
nsresult  NS_GetComponentManager(nsIComponentManager *result);
nsresult  NS_GetComponentRegistrar(nsIComponentRegistrar *result);
nsresult  NS_GetMemoryManager(nsIMemory *result);
nsresult  NS_NewLocalFile(inout nsAString path, PRBool followLinks, nsILocalFile** result);
nsresult  NS_NewNativeLocalFile(inout nsACString path, PRBool followLinks, nsILocalFile** result);
void *    NS_Alloc(PRSize size);
void *    NS_Realloc(void *ptr, PRSize size);
void      NS_Free(void *ptr);
nsresult  NS_GetDebug(nsIDebug **result);
nsresult  NS_GetTraceRefcnt(nsITraceRefcnt *result);