Minor syntactical changes for readability.
[xuni.git] / src / loadso.h
blobcbd355a9135443bb85d72cb96f15326872556260
1 /*! \file loadso.h
3 */
5 #ifndef XUNI_GUARD_LOADSO_H
6 #define XUNI_GUARD_LOADSO_H
8 #include <stddef.h>
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 #if !defined(LOADSO_SDL_VERSION) && !defined(LOADSO_DLOPEN_VERSION) \
15 && !defined(LOADSO_STATIC_VERSION)
17 #define LOADSO_SDL_VERSION
18 #endif
20 typedef void *loadso_t;
21 typedef void (*func_point_t)(void);
23 struct loadso_history_t {
24 loadso_t object;
25 const char *name;
28 struct loadso_array_t {
29 struct loadso_history_t *object;
30 size_t objects;
33 loadso_t xuni_loadso_load_object(struct loadso_array_t *loadso,
34 const char *filename);
35 func_point_t xuni_loadso_load_function(loadso_t object, const char *func);
36 void xuni_loadso_free_object(loadso_t object);
38 void init_loadso(struct loadso_array_t *loadso);
39 void free_loadso(struct loadso_array_t *loadso);
41 #ifdef __cplusplus
43 #endif
45 #endif