![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsSharedLibrary.h>

Public Member Functions | |
| SharedLibrary (const fs::path &filename, SharedLibraryFlags flags=SharedLibraryFlags::NONE, Report &report=(ts::NullReport::Instance())) | |
| virtual | ~SharedLibrary () |
| const UString & | errorMessage () const |
| const fs::path & | fileName () const |
| void * | getSymbol (const std::string &name) const |
| bool | isLoaded () const |
Protected Member Functions | |
| void | load (const fs::path &filename) |
| void | unload () |
Shared library handling (.so on Linux, .dylib on macOS, .dll on Windows).
|
explicit |
Constructor: Load a shared library
| [in] | filename | Shared library file name. |
| [in] | flags | Shared library options. |
| [in,out] | report | Where to report errors. |
|
virtual |
Destructor. Unload the shared library if permanent was false.
|
inline |
Check if the library was successfully loaded.
|
inline |
Return a message describing the constructor error. Useful when isLoaded() == false.
|
inline |
Return actual file name of shared library.
| void * ts::SharedLibrary::getSymbol | ( | const std::string & | name | ) | const |
Get the value of an exported symbol inside the shared library.
| [in] | name | Symbol name, using 8-bit characters, not Unicode. |
|
protected |
Try to load an alternate file if the shared library is not yet loaded.
| [in] | filename | Shared library file name. |
|
protected |
Force unload, even if permanent