20 #ifndef INCLUDED_OSL_MODULE_HXX 21 #define INCLUDED_OSL_MODULE_HXX 65 #ifndef DISABLE_DYNLOADING 69 load( strModuleName, nRtldMode);
76 #ifndef DISABLE_DYNLOADING 81 #ifndef DISABLE_DYNLOADING 83 bool SAL_CALL
load( const ::rtl::OUString& strModuleName,
122 bool SAL_CALL
is()
const 124 return m_Module != NULL;
127 void* SAL_CALL
getSymbol( const ::rtl::OUString& strSymbolName)
SAL_DLLPUBLIC oslGenericFunction osl_getFunctionSymbol(oslModule Module, rtl_uString *ustrFunctionSymbolName)
Lookup the specified function symbol name.
bool loadRelative(::oslGenericFunction baseModule, ::rtl::OUString const &relativePath, ::sal_Int32 mode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:92
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromFunctionAddress(oslGenericFunction pf, rtl_uString **pustrFunctionURL)
Lookup URL of module which is mapped at the specified function address.
SAL_DLLPUBLIC sal_Bool osl_getModuleURLFromAddress(void *pv, rtl_uString **pustrURL)
Lookup URL of module which is mapped at the specified address.
bool load(const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:83
Module(const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:67
static bool getUrlFromAddress(oslGenericFunction addr, ::rtl::OUString &libraryUrl)
Get module URL from the specified function address in the module.
Definition: module.hxx:59
oslGenericFunction getFunctionSymbol(char const *name) const
Definition: module.hxx:151
SAL_DLLPUBLIC oslModule osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode)
Load a shared library or module.
SAL_DLLPUBLIC oslGenericFunction osl_getAsciiFunctionSymbol(oslModule Module, const sal_Char *pSymbol)
Lookup the specified function symbol name.
#define SAL_LOADMODULE_DEFAULT
Definition: module.h:51
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:392
void * getSymbol(const ::rtl::OUString &strSymbolName)
Definition: module.hxx:127
bool is() const
Definition: module.hxx:122
void * oslModule
Definition: module.h:56
~Module()
Definition: module.hxx:74
void release()
Release the module so that it will not be unloaded from the destructor.
Definition: module.hxx:167
Module()
Definition: module.hxx:63
SAL_DLLPUBLIC oslModule osl_loadModuleRelativeAscii(oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode)
Load a module located relative to some other module.
void unload()
Definition: module.hxx:111
Definition: conditn.hxx:37
bool loadRelative(oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode=SAL_LOADMODULE_DEFAULT)
Definition: module.hxx:102
SAL_DLLPUBLIC void osl_unloadModule(oslModule Module)
Release the module.
Definition: module.hxx:33
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:120
oslGenericFunction getFunctionSymbol(const ::rtl::OUString &ustrFunctionSymbolName) const
Get function address by the function name in the module.
Definition: module.hxx:145
static bool getUrlFromAddress(void *addr, ::rtl::OUString &libraryUrl)
Definition: module.hxx:39
SAL_DLLPUBLIC oslModule osl_loadModuleRelative(oslGenericFunction baseModule, rtl_uString *relativePath, sal_Int32 mode)
Load a module located relative to some other module.
void(* oslGenericFunction)(void)
Generic Function pointer type that will be used as symbol address.
Definition: module.h:62
SAL_DLLPUBLIC void * osl_getSymbol(oslModule Module, rtl_uString *strSymbolName)
lookup the specified symbol name.