20 #ifndef _OSL_MODULE_HXX_
21 #define _OSL_MODULE_HXX_
66 #ifndef DISABLE_DYNLOADING
70 load( strModuleName, nRtldMode);
77 #ifndef DISABLE_DYNLOADING
82 #ifndef DISABLE_DYNLOADING
125 return m_Module != NULL;
128 void* SAL_CALL
getSymbol( const ::rtl::OUString& strSymbolName)
oslGenericFunction getFunctionSymbol(char const *name) const
Definition: module.hxx:157
#define SAL_LOADMODULE_DEFAULT
Definition: module.h:51
void * oslModule
Definition: module.h:56
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromFunctionAddress(oslGenericFunction pf, rtl_uString **pustrFunctionURL)
Lookup URL of module which is mapped at the specified function address.
sal_Bool loadRelative(::oslGenericFunction baseModule,::rtl::OUString const &relativePath,::sal_Int32 mode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:93
~Module()
Definition: module.hxx:75
SAL_DLLPUBLIC void * osl_getSymbol(oslModule Module, rtl_uString *strSymbolName)
lookup the specified symbol name.
void unload()
Definition: module.hxx:112
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromAddress(void *pv, rtl_uString **pustrURL)
Lookup URL of module which is mapped at the specified address.
sal_Bool is() const
Definition: module.hxx:123
SAL_DLLPUBLIC oslModule osl_loadModuleRelative(oslGenericFunction baseModule, rtl_uString *relativePath, sal_Int32 mode)
Load a module located relative to some other module.
Module(const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:68
SAL_DLLPUBLIC void osl_unloadModule(oslModule Module)
Release the module.
pData
Definition: ustring.hxx:200
void * getSymbol(const ::rtl::OUString &strSymbolName)
Definition: module.hxx:128
sal_Bool loadRelative(oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:103
unsigned char sal_Bool
Definition: types.h:37
Definition: module.hxx:29
sal_Bool load(const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:84
oslGenericFunction getFunctionSymbol(const ::rtl::OUString &ustrFunctionSymbolName) const
Get function address by the function name in the module.
Definition: module.hxx:151
static sal_Bool getUrlFromAddress(void *addr,::rtl::OUString &libraryUrl)
Definition: module.hxx:35
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:87
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.
void(* oslGenericFunction)(void)
Generic Function pointer type that will be used as symbol address.
Definition: module.h:62
SAL_DLLPUBLIC oslModule osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode)
Load a shared library or module.
SAL_DLLPUBLIC oslModule osl_loadModuleRelativeAscii(oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode)
Load a module located relative to some other module.
static sal_Bool getUrlFromAddress(oslGenericFunction addr,::rtl::OUString &libraryUrl)
Get module URL from the specified function address in the module.
Definition: module.hxx:60
Module()
Definition: module.hxx:64