UDK 3.2.7 C/C++ API Reference
|
Go to the source code of this file.
Defines | |
#define | SAL_MODULENAME(name) name SAL_DLLEXTENSION |
#define | SAL_LOADMODULE_DEFAULT 0x00000 |
#define | SAL_LOADMODULE_LAZY 0x00001 |
#define | SAL_LOADMODULE_NOW 0x00002 |
#define | SAL_LOADMODULE_GLOBAL 0x00100 |
Typedefs | |
typedef void * | oslModule |
typedef void(* | oslGenericFunction )(void) |
Generic Function pointer type that will be used as symbol address. | |
Functions | |
SAL_DLLPUBLIC oslModule | osl_loadModule (rtl_uString *strModuleName, sal_Int32 nRtldMode) |
Load a shared library or module. | |
SAL_DLLPUBLIC oslModule | osl_loadModuleAscii (const sal_Char *pModuleName, sal_Int32 nRtldMode) |
Load a shared library or module. | |
SAL_DLLPUBLIC oslModule | osl_loadModuleRelative (oslGenericFunction baseModule, rtl_uString *relativePath, sal_Int32 mode) |
Load a module located relative to some other module. | |
SAL_DLLPUBLIC oslModule | osl_loadModuleRelativeAscii (oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode) |
Load a module located relative to some other module. | |
SAL_DLLPUBLIC sal_Bool | osl_getModuleHandle (rtl_uString *pModuleName, oslModule *pResult) |
Retrieve the handle of an already loaded module. | |
SAL_DLLPUBLIC void | osl_unloadModule (oslModule Module) |
Release the module. | |
SAL_DLLPUBLIC void * | osl_getSymbol (oslModule Module, rtl_uString *strSymbolName) |
lookup the specified symbol name. | |
SAL_DLLPUBLIC oslGenericFunction | osl_getFunctionSymbol (oslModule Module, rtl_uString *ustrFunctionSymbolName) |
Lookup the specified function symbol name. | |
SAL_DLLPUBLIC oslGenericFunction | osl_getAsciiFunctionSymbol (oslModule Module, const sal_Char *pSymbol) |
Lookup the specified function symbol name. | |
SAL_DLLPUBLIC sal_Bool | osl_getModuleURLFromAddress (void *pv, rtl_uString **pustrURL) |
Lookup URL of module which is mapped at the specified address. | |
SAL_DLLPUBLIC sal_Bool | osl_getModuleURLFromFunctionAddress (oslGenericFunction pf, rtl_uString **pustrFunctionURL) |
Lookup URL of module which is mapped at the specified function address. |
#define SAL_LOADMODULE_DEFAULT 0x00000 |
#define SAL_LOADMODULE_GLOBAL 0x00100 |
#define SAL_LOADMODULE_LAZY 0x00001 |
#define SAL_LOADMODULE_NOW 0x00002 |
#define SAL_MODULENAME | ( | name | ) | name SAL_DLLEXTENSION |
typedef void( * oslGenericFunction)(void) |
Generic Function pointer type that will be used as symbol address.
typedef void* oslModule |
SAL_DLLPUBLIC oslGenericFunction osl_getAsciiFunctionSymbol | ( | oslModule | Module, |
const sal_Char * | pSymbol | ||
) |
Lookup the specified function symbol name.
osl_getAsciiFunctionSymbol is an alternative function for osl_getFunctionSymbol. It expects the C-style function name string to contain ascii characters only.
Module | [in] a module handle as returned by osl_loadModule or osl_getModuleHandle |
pSymbol | [in] Name of the function that will be looked up. |
SAL_DLLPUBLIC oslGenericFunction osl_getFunctionSymbol | ( | oslModule | Module, |
rtl_uString * | ustrFunctionSymbolName | ||
) |
Lookup the specified function symbol name.
osl_getFunctionSymbol is an alternative function for osl_getSymbol. Use Function pointer as symbol address to conceal type conversion.
Module | [in] the handle of the Module. |
ustrFunctionSymbolName | [in] Name of the function that will be looked up. |
Retrieve the handle of an already loaded module.
This function can be used to search for a function symbol in the process address space. Do not use the returned handle as an argument to osl_unloadModule. On Unix platforms, pModuleName gets ignored and the special handle RTLD_DEFAULT is returned.
pModuleName | [in] denotes the name of the module to search for. Ignored on Unix |
pResult | [out] a pointer to a oslModule that is updated with the requested module handle on success. |
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromAddress | ( | void * | pv, |
rtl_uString ** | pustrURL | ||
) |
Lookup URL of module which is mapped at the specified address.
pv | specifies an address in the process memory space. |
pustrURL | receives the URL of the module that is mapped at pv. |
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromFunctionAddress | ( | oslGenericFunction | pf, |
rtl_uString ** | pustrFunctionURL | ||
) |
Lookup URL of module which is mapped at the specified function address.
osl_getModuleURLFromFunctionAddress is an alternative function for osl_getModuleURLFromAddress. Use Function pointer as symbol address to conceal type conversion.
pf | [in] function address in oslGenericFunction format. |
pustrFunctionURL | [out] receives the URL of the module that is mapped at pf. |
SAL_DLLPUBLIC void* osl_getSymbol | ( | oslModule | Module, |
rtl_uString * | strSymbolName | ||
) |
lookup the specified symbol name.
SAL_DLLPUBLIC oslModule osl_loadModule | ( | rtl_uString * | strModuleName, |
sal_Int32 | nRtldMode | ||
) |
Load a shared library or module.
strModuleName | denotes the name of the module to be loaded. |
nRtldMode | denotes the mode. |
Load a shared library or module.
pModuleName | denotes the name of the module to be loaded. |
nRtldMode | denotes the mode. |
SAL_DLLPUBLIC oslModule osl_loadModuleRelative | ( | oslGenericFunction | baseModule, |
rtl_uString * | relativePath, | ||
sal_Int32 | mode | ||
) |
Load a module located relative to some other module.
baseModule | must point to a function that is part of the code of some loaded module; must not be NULL. |
relativePath | a relative URL; must not be NULL. |
mode | the SAL_LOADMODULE_xxx flags. |
SAL_DLLPUBLIC oslModule osl_loadModuleRelativeAscii | ( | oslGenericFunction | baseModule, |
char const * | relativePath, | ||
sal_Int32 | mode | ||
) |
Load a module located relative to some other module.
baseModule | must point to a function that is part of the code of some loaded module; must not be NULL. |
relativePath | a relative URL containing only ASCII (0x01--7F) characters; must not be NULL. |
mode | the SAL_LOADMODULE_xxx flags. |
SAL_DLLPUBLIC void osl_unloadModule | ( | oslModule | Module | ) |
Release the module.