sbComponentLoader.cpp File Reference

Component Loader Source. More...

#include <nsCOMPtr.h>
#include <nsILocalFile.h>
#include <nsModule.h>
#include <nsStringAPI.h>
Include dependency graph for sbComponentLoader.cpp:

Go to the source code of this file.

Functions

static nsresult LoadLibrary (nsCOMPtr< nsIFile > aLibDir, nsString aLibPath)
 
NS_EXPORT nsresult NSGetModule (nsIComponentManager *aComponentManager, nsIFile *aComponentFile, nsIModule **aComponentModule)
 

Detailed Description

Component Loader Source.

Definition in file sbComponentLoader.cpp.

Function Documentation

nsresult LoadLibrary ( nsCOMPtr< nsIFile >  aLibDir,
nsString  aLibPath 
)
static

Load the library with the relative file path specified by aLibPath within the library directory specified by aLibDir.

Parameters
aLibDirDirectory containing libraries.
aLibPathPath to library file within libraries directory.

Definition at line 213 of file sbComponentLoader.cpp.

Here is the caller graph for this function:

NS_EXPORT nsresult NSGetModule ( nsIComponentManager *  aComponentManager,
nsIFile *  aComponentFile,
nsIModule **  aComponentModule 
)

Wrapper for a target component's NSGetModule function. This function loads the target component and any of its dependent libraries and calls the target component's NSGetModule function with the specified function parameters.

Parameters
aComponentManagerComponent manager services.
aComponentFileComponent file.
aComponentModuleComponent module.

Definition at line 150 of file sbComponentLoader.cpp.

Here is the call graph for this function: