System header. More...
#include <kanzi/core/core_api.hpp>
Macros | |
#define | KZ_LOG_CATEGORY_DYNAMIC_LIBRARY |
Logging category for dynamic library. | |
Typedefs | |
typedef void(* | PFNDYNAMICLIBRARYMUSTCASTPROC) (void) |
Pointer to any function. | |
Functions | |
void | kzsDynamicLibraryClose (struct KzsDynamicLibrary *library) |
Destroys a KzsDynamicLibrary object and releases all resources associated with it. | |
PFNDYNAMICLIBRARYMUSTCASTPROC | kzsDynamicLibraryGetProcAddress (struct KzsDynamicLibrary *library, const char *symbolName) |
Retrieves function addresses of the dynamic library. | |
bool | kzsDynamicLibraryIsLoaded (const struct KzsDynamicLibrary *library) |
Checks if the dynamic library loading was successful. | |
struct KzsDynamicLibrary * | kzsDynamicLibraryOpen (const char *path) |
Creates a KzsDynamicLibrary object and tries to load the library specified by the path parameter. | |
System header.
Copyright 2008-2017 by Rightware. All rights reserved.
#define KZ_LOG_CATEGORY_DYNAMIC_LIBRARY |
Logging category for dynamic library.
typedef void(* PFNDYNAMICLIBRARYMUSTCASTPROC) (void) |
Pointer to any function.
Cast into the correct function type before using the value.
struct KzsDynamicLibrary * kzsDynamicLibraryOpen | ( | const char * | path | ) |
Creates a KzsDynamicLibrary object and tries to load the library specified by the path parameter.
Use kzsDynamicLibraryIsLoaded() to check if the loading actually succeeded. After successful loading you can retrieve function addresses of the library using kzsDynamicLibraryGetProcAddress(). Destroy KzsDynamicLibrary objects after use with kzsDynamicLibraryClose().
path | Path to the library to load. |
void kzsDynamicLibraryClose | ( | struct KzsDynamicLibrary * | library | ) |
Destroys a KzsDynamicLibrary object and releases all resources associated with it.
library | The library to destroy. |
bool kzsDynamicLibraryIsLoaded | ( | const struct KzsDynamicLibrary * | library | ) |
Checks if the dynamic library loading was successful.
library | The library to check. |
PFNDYNAMICLIBRARYMUSTCASTPROC kzsDynamicLibraryGetProcAddress | ( | struct KzsDynamicLibrary * | library, |
const char * | symbolName ) |
Retrieves function addresses of the dynamic library.
library | The library to search. |
symbolName | Name of the function to search for. |