From a46cb958bf98fddeecfca9ec3860a45d1aea3158 Mon Sep 17 00:00:00 2001 From: "conrad%ingress.com" Date: Fri, 11 Aug 2000 20:09:05 +0000 Subject: [PATCH] 1. Uses appfilelocationprovider. Can pass one in or pass nsnull and default is made. 2. Removed version of NS_InitEmbedding which took char* path. r=dougt git-svn-id: svn://10.0.0.236/trunk@76122 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/embedding/base/nsEmbedAPI.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mozilla/embedding/base/nsEmbedAPI.h b/mozilla/embedding/base/nsEmbedAPI.h index aeed59898cc..fc924fcf525 100644 --- a/mozilla/embedding/base/nsEmbedAPI.h +++ b/mozilla/embedding/base/nsEmbedAPI.h @@ -26,9 +26,18 @@ #define NSEMBEDAPI_H #include "nsILocalFile.h" +#include "nsIDirectoryService.h" -extern nsresult NS_InitEmbedding(const char *aPath); -extern nsresult NS_InitEmbedding(nsILocalFile *aPath); +/* + aPath -> the mozilla bin directory. If nsnull, the default is used + aProvider -> the application directory service provider. If nsnull, the + default (nsAppFileLocationProvider) is constructed and used. + If not nsnull, the arg must be AddRef'd already and ownership + is taken by this function. +*/ + +extern nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory, + nsIDirectoryServiceProvider *appFileLocProvider); extern nsresult NS_TermEmbedding(); #endif