pelib  2.0.0
include/pelib/dl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

voidload_lib (const char *library)
voidload_function (void *handle, const char *function)
void destroy_lib (void *handle)

Function Documentation

void destroy_lib ( void handle)

Unload a dynamically loaded function and destroy its handler

Definition at line 64 of file dl.cpp.

void* load_function ( void handle,
const char *  function 
)

Extracts a function pointer from a dynamically laoded function

Parameters:
HandleDynmic Library handle obtained with load_lib()
FunctionName of the function in the library to be run
Returns:
Function pointer ready to be called

Definition at line 48 of file dl.cpp.

void* load_lib ( const char *  library)

Dynamically loads a dynamic library through its filename

Parameters:
libraryFilename of the library to be loaded
Returns:
Handler for the library loaded

Definition at line 28 of file dl.cpp.