зеркало из https://github.com/mozilla/gecko-dev.git
Added service manager mechanism.
This commit is contained in:
Родитель
dff0de499c
Коммит
6587ecb0af
|
@ -166,7 +166,7 @@ nsServiceManager::nsServiceManager(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PRBool
|
static PRBool
|
||||||
DeleteEntry(nsHashKey *aKey, void *aData, void* closure)
|
DeleteEntry(nsHashKey *aKey, void *aData)
|
||||||
{
|
{
|
||||||
nsServiceEntry* entry = (nsServiceEntry*)aData;
|
nsServiceEntry* entry = (nsServiceEntry*)aData;
|
||||||
entry->mService->Release();
|
entry->mService->Release();
|
||||||
|
|
|
@ -22,6 +22,7 @@ LIBRARY_NAME = xpcom
|
||||||
CPPSRCS = nsDebug.cpp \
|
CPPSRCS = nsDebug.cpp \
|
||||||
nsHashtable.cpp \
|
nsHashtable.cpp \
|
||||||
nsID.cpp \
|
nsID.cpp \
|
||||||
|
nsServiceManager.cpp \
|
||||||
nsSupportsArray.cpp \
|
nsSupportsArray.cpp \
|
||||||
nsRepository.cpp \
|
nsRepository.cpp \
|
||||||
nsMalloc.cpp \
|
nsMalloc.cpp \
|
||||||
|
@ -36,6 +37,7 @@ EXPORTS = nsCom.h \
|
||||||
nsIFactory.h \
|
nsIFactory.h \
|
||||||
nsISupports.h \
|
nsISupports.h \
|
||||||
nsIPtr.h \
|
nsIPtr.h \
|
||||||
|
nsIServiceManager.h \
|
||||||
nsISupportsArray.h \
|
nsISupportsArray.h \
|
||||||
nsRepository.h \
|
nsRepository.h \
|
||||||
nsIEnumerator.h \
|
nsIEnumerator.h \
|
||||||
|
|
|
@ -27,6 +27,7 @@ LIBRARY_NAME = xpcom
|
||||||
CPPSRCS = nsDebug.cpp \
|
CPPSRCS = nsDebug.cpp \
|
||||||
nsHashtable.cpp \
|
nsHashtable.cpp \
|
||||||
nsID.cpp \
|
nsID.cpp \
|
||||||
|
nsServiceManager.cpp \
|
||||||
nsSupportsArray.cpp \
|
nsSupportsArray.cpp \
|
||||||
nsRepository.cpp \
|
nsRepository.cpp \
|
||||||
nsMalloc.cpp \
|
nsMalloc.cpp \
|
||||||
|
@ -41,6 +42,7 @@ EXPORTS = nsCom.h \
|
||||||
nsIFactory.h \
|
nsIFactory.h \
|
||||||
nsISupports.h \
|
nsISupports.h \
|
||||||
nsIPtr.h \
|
nsIPtr.h \
|
||||||
|
nsIServiceManager.h \
|
||||||
nsISupportsArray.h \
|
nsISupportsArray.h \
|
||||||
nsRepository.h \
|
nsRepository.h \
|
||||||
nsIEnumerator.h \
|
nsIEnumerator.h \
|
||||||
|
|
|
@ -166,7 +166,7 @@ nsServiceManager::nsServiceManager(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PRBool
|
static PRBool
|
||||||
DeleteEntry(nsHashKey *aKey, void *aData, void* closure)
|
DeleteEntry(nsHashKey *aKey, void *aData)
|
||||||
{
|
{
|
||||||
nsServiceEntry* entry = (nsServiceEntry*)aData;
|
nsServiceEntry* entry = (nsServiceEntry*)aData;
|
||||||
entry->mService->Release();
|
entry->mService->Release();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче