Codemesh Runtime v3 C++ API Reference
3.9.205
|
A wrapper around shared libraries. More...
#include <xmog_sharedlib.h>
Public Member Functions | |
void * | get_handle () const |
Returns the handle represented by this instance. | |
int | open (const char *path, int flags, void *handle) |
Attempts to "open" the specified library. | |
xmog_sharedlib () | |
The default constructor. | |
~xmog_sharedlib () | |
Cleans up behind the instance. | |
void * | resolveSymbol (const char *symbol) |
Attempts to resolve a symbol in the shared library. More... | |
void * | symbol (const char *symbol, int _ignored) |
Attempts to resolve a symbol in the shared library. More... | |
Static Public Member Functions | |
static xmog_sharedlib * | resolve (const char *file) |
Returns an instance that represents the specified file or NULL if it cannot be resolved. More... | |
static xmog_sharedlib * | getRuntimeLib () |
Returns an instance that represents the module in which this method resides (typically the runtime library). | |
static xmog_sharedlib * | getCallingProcess () |
Returns an instance that represents the calling process. More... | |
A wrapper around shared libraries.
This class can be used to resolve symbols in dynamically loaded modules.
|
static |
Returns an instance that represents the calling process.
|
static |
Returns an instance that represents the specified file or NULL
if it cannot be resolved.
file | the file we're trying to resolve. |
void* xmog_sharedlib::resolveSymbol | ( | const char * | symbol | ) |
Attempts to resolve a symbol in the shared library.
symbol | the name of the symbol we're looking up. |
void* xmog_sharedlib::symbol | ( | const char * | symbol, |
int | _ignored | ||
) |
Attempts to resolve a symbol in the shared library.
An alias for resolveSymbol().
symbol | the name of the symbol we're looking up. |