summaryrefslogtreecommitdiff
path: root/src/core/include/engine/core/dltools.h
blob: 5a53f497c3c2a9342651f5dff83cebddffef7506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef DLTOOLS_H
#define DLTOOLS_H

#include <stdbool.h>

/* Utility functions for handling runtime linked shared libraries */
bool dynamic_library_close(void* shared_library);
void* dynamic_library_open(const char* library_path);
void* dynamic_library_reload(void* shared_library, const char* library_path);

/* Returns the address of symbol in the provided shared_library handle.
 * NULL on error*/
void* dynamic_library_get_symbol(void* shared_library, const char* symbol);
char* dynamic_library_get_error(void);

#endif