|
LibreOffice
LibreOffice 26.2 SDK C/C++ API Reference
|
#include <module.hxx>
Public Member Functions | |
| Module () | |
| Module (const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT) | |
| ~Module () | |
| bool | load (const ::rtl::OUString &strModuleName, sal_Int32 nRtldMode=SAL_LOADMODULE_DEFAULT) |
| bool | loadRelative (::oslGenericFunction baseModule, ::rtl::OUString const &relativePath, ::sal_Int32 mode=SAL_LOADMODULE_DEFAULT) |
| bool | loadRelative (oslGenericFunction baseModule, char const *relativePath, sal_Int32 mode=SAL_LOADMODULE_DEFAULT) |
| void | unload () |
| bool | is () const |
| void * | getSymbol (const ::rtl::OUString &strSymbolName) |
| oslGenericFunction | getFunctionSymbol (const ::rtl::OUString &ustrFunctionSymbolName) const |
| Get function address by the function name in the module. | |
| oslGenericFunction | getFunctionSymbol (char const *name) const |
| operator oslModule () const | |
| void | release () |
| Release the module so that it will not be unloaded from the destructor. | |
Static Public Member Functions | |
| static bool | getUrlFromAddress (void *addr, ::rtl::OUString &libraryUrl) |
| static bool | getUrlFromAddress (oslGenericFunction addr, ::rtl::OUString &libraryUrl) |
| Get module URL from the specified function address in the module. | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get function address by the function name in the module.
getFunctionSymbol is an alternative function for getSymbol. Use Function pointer as symbol address to conceal type conversion.
| [in] | ustrFunctionSymbolName | Function name to be looked up. |
| oslGenericFunction | format function address on success |
| NULL | lookup failed or parameter is somewhat invalid |
|
inline |
|
inlinestatic |
Get module URL from the specified function address in the module.
Similar to getUrlFromAddress, but use a function address to get URL of the Module. Use Function pointer as symbol address to conceal type conversion.
| [in] | addr | function address in oslGenericFunction format. |
| [in,out] | libraryUrl | receives the URL of the module. |
| true | on success |
| false | can not get the URL from the specified function address or the parameter is invalid. |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Release the module so that it will not be unloaded from the destructor.
This instance returns to the state of a default-constructed instance again.
|
inline |