Component Loader Source. More...
#include <nsCOMPtr.h>#include <nsILocalFile.h>#include <nsModule.h>#include <nsStringAPI.h>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) |
Component Loader Source.
Definition in file sbComponentLoader.cpp.
|
static |
Load the library with the relative file path specified by aLibPath within the library directory specified by aLibDir.
| aLibDir | Directory containing libraries. |
| aLibPath | Path to library file within libraries directory. |
Definition at line 213 of file sbComponentLoader.cpp.
| 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.
| aComponentManager | Component manager services. |
| aComponentFile | Component file. |
| aComponentModule | Component module. |
Definition at line 150 of file sbComponentLoader.cpp.