Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
system.h
Go to the documentation of this file.
1
11#ifndef BJ_SYSTEM_H
12#define BJ_SYSTEM_H
13
14#include <banjo/api.h>
15#include <banjo/error.h>
16
23
36 int systems,
37 struct bj_error** error
38);
39
48 void
49);
50
67 enum bj_system system,
68 struct bj_error** error
69);
70
84 enum bj_system system,
85 struct bj_error** error
86);
87
120 const char* path,
121 struct bj_error** error
122);
123
149 void* handle
150);
151
183 void* handle,
184 const char* name,
185 struct bj_error** error
186);
187
188#endif
General-purpose definitions for Banjo API.
Recoverable error handling.
struct bj_error bj_error
Definition api.h:282
#define BANJO_EXPORT
Definition api.h:113
uint32_t bj_bool
Boolean type used throughout the Banjo API.
Definition api.h:207
bj_bool bj_begin(int systems, struct bj_error **error)
Initializes the system.
void bj_end_system(enum bj_system system, struct bj_error **error)
De-initializes a single system with reference counting.
void * bj_load_library(const char *path, struct bj_error **error)
Load the provided dynamic library and returns and opaque handle to it.
void bj_end(void)
De-initializes the system.
bj_system
Definition system.h:17
void * bj_library_symbol(void *handle, const char *name, struct bj_error **error)
Get the address of a function exported by handle given its name.
void bj_unload_library(void *handle)
Unload a library loaded with bj_load_library from memory.
bj_bool bj_begin_system(enum bj_system system, struct bj_error **error)
Initializes a single system with reference counting.
@ BJ_VIDEO_SYSTEM
Definition system.h:20
@ BJ_NETWORK_SYSTEM
Definition system.h:21
@ BJ_AUDIO_SYSTEM
Definition system.h:19
@ BJ_NO_SYSTEM
Definition system.h:18