Back to index

lightning-sunbird  0.9+nobinonly
xpcom-core.cpp
Go to the documentation of this file.
00001 #include <nsXPCOM.h>
00002 #include <nsDebug.h>
00003 #include <nsIInterfaceInfoManager.h>
00004 #include <xptinfo.h>
00005 #include <nsCOMPtr.h>
00006 
00007 extern "C" int
00008 StartXPCOM(nsIServiceManager** srvmgr)
00009 {
00010     nsresult res = NS_InitXPCOM2(srvmgr, 0, 0);
00011     if (NS_SUCCEEDED(res)) {
00012         extern nsIInterfaceInfoManager *infomgr;
00013         infomgr = XPTI_GetInterfaceInfoManager();
00014     }
00015     return res;
00016 }