1 module org.eclipse.swt.internal.mozilla.nsIServiceManager;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 
9 const char[] NS_ISERVICEMANAGER_IID_STR = "8bb35ed9-e332-462d-9155-4a002ab5c958";
10 const nsIID NS_ISERVICEMANAGER_IID= 
11   {0x8bb35ed9, 0xe332, 0x462d, 
12     [ 0x91, 0x55, 0x4a, 0x00, 0x2a, 0xb5, 0xc9, 0x58 ]};
13 
14 interface nsIServiceManager : nsISupports {
15 
16   static const char[] IID_STR = NS_ISERVICEMANAGER_IID_STR;
17   static const nsIID IID = NS_ISERVICEMANAGER_IID;
18 
19 extern(System):
20   nsresult GetService(in nsCID * aClass, in nsIID * aIID, void * *result);
21   nsresult GetServiceByContractID( in char *aContractID, in nsIID * aIID, void * *result);
22   nsresult IsServiceInstantiated(in nsCID * aClass, in nsIID * aIID, PRBool *_retval);
23   nsresult IsServiceInstantiatedByContractID(in char *aContractID, in nsIID * aIID, PRBool *_retval);
24 
25 }
26