1. Uses appfilelocationprovider. Can pass one in or pass nsnull and default is made.

This commit is contained in:
conrad%ingress.com 2000-08-11 20:09:05 +00:00
Родитель 47a7452cb4
Коммит 9b674df6c3
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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