Final Platform Layer 0.9.8-beta
|
This category contains functions for loading dynamic libraries. More...
Data Structures | |
struct | fplDynamicLibraryHandle |
A structure containing the internal handle to a dynamic library. More... | |
union | fplInternalDynamicLibraryHandle |
A union containing the library handle for any platform. More... | |
Typedefs | |
typedef struct fplDynamicLibraryHandle | fplDynamicLibraryHandle |
A structure containing the internal handle to a dynamic library. | |
typedef union fplInternalDynamicLibraryHandle | fplInternalDynamicLibraryHandle |
A union containing the library handle for any platform. | |
Functions | |
fpl_platform_api bool | fplDynamicLibraryLoad (const char *libraryFilePath, fplDynamicLibraryHandle *outHandle) |
Loads a dynamic library and returns if the load was successful or not. | |
fpl_platform_api void | fplDynamicLibraryUnload (fplDynamicLibraryHandle *handle) |
Unloads the loaded library and resets the handle to zero. | |
fpl_platform_api void * | fplGetDynamicLibraryProc (const fplDynamicLibraryHandle *handle, const char *name) |
Returns the dynamic library procedure address for the given procedure name. | |
This category contains functions for loading dynamic libraries.
fpl_platform_api bool fplDynamicLibraryLoad | ( | const char * | libraryFilePath, |
fplDynamicLibraryHandle * | outHandle | ||
) |
Loads a dynamic library and returns if the load was successful or not.
libraryFilePath | The path to the library with included file extension (.dll / .so) |
outHandle | The output handle fplDynamicLibraryHandle |
fpl_platform_api void fplDynamicLibraryUnload | ( | fplDynamicLibraryHandle * | handle | ) |
Unloads the loaded library and resets the handle to zero.
handle | The library handle fplDynamicLibraryHandle |
fpl_platform_api void * fplGetDynamicLibraryProc | ( | const fplDynamicLibraryHandle * | handle, |
const char * | name | ||
) |
Returns the dynamic library procedure address for the given procedure name.
handle | The fplDynamicLibraryHandle handle to the loaded library |
name | The name of the procedure |