Main Page   Compound List   File List   Compound Members   File Members  

TclXPCOMInit.cpp File Reference

#include "TclXPCOMPrivate.h"
#include "nsXPCOM.h"
#include "nsILocalFile.h"
#include "nsIDirectoryService.h"
#include "nsIThread.h"
#include "nsString.h"

Go to the source code of this file.

Functions

int Tclxpcom_SafeInit (Tcl_Interp *interp)
int Tclxpcom_Init (Tcl_Interp *interp)

Variables

nsIServiceManager * servmanager
 global reference to the XPCOM Service Manager. More...

nsIInterfaceInfoManager * manager
 global reference to the XPCOM Interface Info Manager. More...

nsIComponentRegistrar * registrar
 global reference to the XPCOM Component Manager. More...

nsIMemory * memmgr
 global reference to the XPCOM Memory Allocator. More...

nsIID nsisupports_iid = NS_ISUPPORTS_IID
nsIID nsiclassinfo_iid = NS_ICLASSINFO_IID
nsIID nsiservicemanager_iid = NS_ISERVICEMANAGER_IID
nsIInterfaceInfo * nsisupports_info
nsIInterfaceInfo * nsiservicemanager_info
nsIInterfaceInfo * nsiclassinfo_info
Tcl_Encoding ascii_enc
int TclXPCOMInitialized = 0
 indicates whether the library has been initialized. More...


Detailed Description

Contains initialization functions for the TclXPCOM library.

Definition in file TclXPCOMInit.cpp.


Function Documentation

int Tclxpcom_SafeInit Tcl_Interp *    interp
 

Initializes a safe version of TclXPCOM in the given interpreter. Currently this is identical to the 'non-safe' version.

Return values:
TCL_OK  - if successful
TCL_ERROR  - if initialization failed
Parameters:
interp  (in) interpreter to initialize

Definition at line 74 of file TclXPCOMInit.cpp.

References Tclxpcom_Init.

int Tclxpcom_Init Tcl_Interp *    interp
 

Initializes the TclXPCOM library if necessary and adds the 'xpcom' command to the given interpreter. If 'xpcom::mozilla_home' is set, its value will be used during the initialization of XPCOM to specify the location of the mozilla 'bin' directory.

Return values:
TCL_OK  - if successful
TCL_ERROR  - if initialization failed
Parameters:
interp  (in) interpreter to initialize

Definition at line 95 of file TclXPCOMInit.cpp.

References ascii_enc, manager, memmgr, nsiclassinfo_iid, nsiclassinfo_info, nsiservicemanager_iid, nsiservicemanager_info, nsisupports_iid, nsisupports_info, registrar, servmanager, TclXPCOM_InitClassInfo, TclXPCOM_InitInterfaceInfo, TclXPCOM_InitInterfaceRef, TCLXPCOM_MOZHOMEVARNAME, TclXPCOM_RegisterCommands, TclXPCOM_RegisterObjTypes, and TclXPCOMInitialized.

Referenced by Tclxpcom_SafeInit.


Variable Documentation

nsIServiceManager* servmanager
 

global reference to the XPCOM Service Manager.

Definition at line 48 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIInterfaceInfoManager* manager
 

global reference to the XPCOM Interface Info Manager.

Definition at line 49 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIComponentRegistrar* registrar
 

global reference to the XPCOM Component Manager.

Definition at line 50 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIMemory* memmgr
 

global reference to the XPCOM Memory Allocator.

Definition at line 51 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIID nsisupports_iid = NS_ISUPPORTS_IID
 

Definition at line 53 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIID nsiclassinfo_iid = NS_ICLASSINFO_IID
 

Definition at line 54 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIID nsiservicemanager_iid = NS_ISERVICEMANAGER_IID
 

Definition at line 55 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIInterfaceInfo* nsisupports_info
 

Definition at line 57 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIInterfaceInfo* nsiservicemanager_info
 

Definition at line 58 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

nsIInterfaceInfo* nsiclassinfo_info
 

Definition at line 59 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

Tcl_Encoding ascii_enc
 

Definition at line 61 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.

int TclXPCOMInitialized = 0 [static]
 

indicates whether the library has been initialized.

Definition at line 63 of file TclXPCOMInit.cpp.

Referenced by Tclxpcom_Init.


Generated on Fri Jun 14 23:25:51 2002 for TclXPCOM by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002