From 7876a9e76593aff00505571ae978d8e2a12a2726 Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Fri, 28 Aug 1998 21:28:35 +0000 Subject: [PATCH] Added service manager mechanism. git-svn-id: svn://10.0.0.236/trunk@8738 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/components/nsServiceManager.cpp | 2 +- mozilla/xpcom/src/Makefile | 2 ++ mozilla/xpcom/src/Makefile.in | 2 ++ mozilla/xpcom/src/nsServiceManager.cpp | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/components/nsServiceManager.cpp b/mozilla/xpcom/components/nsServiceManager.cpp index 50241ff392e..2a12d24f076 100644 --- a/mozilla/xpcom/components/nsServiceManager.cpp +++ b/mozilla/xpcom/components/nsServiceManager.cpp @@ -166,7 +166,7 @@ nsServiceManager::nsServiceManager(void) } static PRBool -DeleteEntry(nsHashKey *aKey, void *aData, void* closure) +DeleteEntry(nsHashKey *aKey, void *aData) { nsServiceEntry* entry = (nsServiceEntry*)aData; entry->mService->Release(); diff --git a/mozilla/xpcom/src/Makefile b/mozilla/xpcom/src/Makefile index 1838e85eaba..c81976d83f9 100644 --- a/mozilla/xpcom/src/Makefile +++ b/mozilla/xpcom/src/Makefile @@ -22,6 +22,7 @@ LIBRARY_NAME = xpcom CPPSRCS = nsDebug.cpp \ nsHashtable.cpp \ nsID.cpp \ + nsServiceManager.cpp \ nsSupportsArray.cpp \ nsRepository.cpp \ nsMalloc.cpp \ @@ -36,6 +37,7 @@ EXPORTS = nsCom.h \ nsIFactory.h \ nsISupports.h \ nsIPtr.h \ + nsIServiceManager.h \ nsISupportsArray.h \ nsRepository.h \ nsIEnumerator.h \ diff --git a/mozilla/xpcom/src/Makefile.in b/mozilla/xpcom/src/Makefile.in index 6d95e69c52c..ab52370a5cf 100644 --- a/mozilla/xpcom/src/Makefile.in +++ b/mozilla/xpcom/src/Makefile.in @@ -27,6 +27,7 @@ LIBRARY_NAME = xpcom CPPSRCS = nsDebug.cpp \ nsHashtable.cpp \ nsID.cpp \ + nsServiceManager.cpp \ nsSupportsArray.cpp \ nsRepository.cpp \ nsMalloc.cpp \ @@ -41,6 +42,7 @@ EXPORTS = nsCom.h \ nsIFactory.h \ nsISupports.h \ nsIPtr.h \ + nsIServiceManager.h \ nsISupportsArray.h \ nsRepository.h \ nsIEnumerator.h \ diff --git a/mozilla/xpcom/src/nsServiceManager.cpp b/mozilla/xpcom/src/nsServiceManager.cpp index 50241ff392e..2a12d24f076 100644 --- a/mozilla/xpcom/src/nsServiceManager.cpp +++ b/mozilla/xpcom/src/nsServiceManager.cpp @@ -166,7 +166,7 @@ nsServiceManager::nsServiceManager(void) } static PRBool -DeleteEntry(nsHashKey *aKey, void *aData, void* closure) +DeleteEntry(nsHashKey *aKey, void *aData) { nsServiceEntry* entry = (nsServiceEntry*)aData; entry->mService->Release();