Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 4f3a44d

Browse files
author
dougt%netscape.com
committed
API Freeze for nsIServiceManager r=shaver@mozilla.org, sr=rpotts@netscape.com bug 99147
1 parent b792947 commit 4f3a44d

62 files changed

Lines changed: 2343 additions & 1058 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/mac/build_scripts/MozillaBuildList.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ sub BuildClientDist()
571571
InstallFromManifest(":mozilla:xpcom:threads:MANIFEST_IDL", "$distdirectory:idl:");
572572
InstallFromManifest(":mozilla:xpcom:components:MANIFEST_IDL", "$distdirectory:idl:");
573573

574+
InstallFromManifest(":mozilla:xpcom:build:MANIFEST", "$distdirectory:xpcom:");
574575
InstallFromManifest(":mozilla:xpcom:glue:MANIFEST", "$distdirectory:xpcom:");
575576
InstallFromManifest(":mozilla:xpcom:base:MANIFEST", "$distdirectory:xpcom:");
576577
InstallFromManifest(":mozilla:xpcom:components:MANIFEST", "$distdirectory:xpcom:");

chrome/tools/chromereg/regchrome.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
int main(int argc, char **argv)
2727
{
28-
NS_InitXPCOM(nsnull, nsnull);
28+
NS_InitXPCOM2(nsnull, nsnull, nsnull);
2929

3030
nsCOMPtr <nsIChromeRegistry> chromeReg =
3131
do_GetService("@mozilla.org/chrome/chrome-registry;1");

config/bin2rc.exe

0 Bytes
Binary file not shown.

config/makecopy.exe

0 Bytes
Binary file not shown.

config/makedep.exe

0 Bytes
Binary file not shown.

config/mangle.exe

0 Bytes
Binary file not shown.

config/mantomak.exe

0 Bytes
Binary file not shown.

extensions/cookie/tests/TestCookie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void GetACookie(nsICookieService *cookieService, const char* aSpec, char* *aCook
8989

9090
int main(PRInt32 argc, char *argv[])
9191
{
92-
nsresult rv = NS_InitXPCOM(nsnull, nsnull);
92+
nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
9393
if (NS_FAILED(rv)) return -1;
9494

9595
// Create the Event Queue for this thread...

extensions/python/xpcom/src/xpcom.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ PyXPCOMMethod_GetGlobalServiceManager(PyObject *self, PyObject *args)
179179
{
180180
if (!PyArg_ParseTuple(args, ""))
181181
return NULL;
182-
nsIServiceManager* sm;
182+
nsIServiceManagerObsolete* sm;
183183
nsresult rv;
184184
Py_BEGIN_ALLOW_THREADS;
185-
rv = nsServiceManager::GetGlobalServiceManager(&sm);
185+
rv = nsServiceManager::GetGlobalServiceManager((nsIServiceManager**)&sm);
186186
Py_END_ALLOW_THREADS;
187187
if ( NS_FAILED(rv) )
188188
return PyXPCOM_BuildPyException(rv);
@@ -509,10 +509,10 @@ PRBool PyXPCOM_Globals_Ensure()
509509

510510
nsCOMPtr<nsILocalFile> ns_bin_dir;
511511
NS_NewLocalFile(landmark, PR_FALSE, getter_AddRefs(ns_bin_dir));
512-
nsresult rv = NS_InitXPCOM(nsnull, ns_bin_dir);
512+
nsresult rv = NS_InitXPCOM2(nsnull, ns_bin_dir, nsnull);
513513
#else
514514
// Elsewhere, Mozilla can find it itself (we hope!)
515-
nsresult rv = NS_InitXPCOM(nsnull, nsnull);
515+
nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
516516
#endif // XP_WIN
517517
if (NS_FAILED(rv)) {
518518
PyErr_SetString(PyExc_RuntimeError, "The XPCOM subsystem could not be initialized");

extensions/xmlextras/tests/TestXMLExtras.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ int main (int argc, char* argv[])
126126

127127
nsIServiceManager *servMgr;
128128

129-
rv = NS_InitXPCOM(&servMgr, nsnull);
129+
rv = NS_InitXPCOM2(&servMgr, nsnull, nsnull);
130130
if (NS_FAILED(rv)) return rv;
131131

132132
if (argc > 2) {

0 commit comments

Comments
 (0)