General-purpose definitions for Banjo API.
Recoverable error handling.
#define BANJO_EXPORT
Definition api.h:155
uint32_t bj_bool
Boolean type used throughout the Banjo API.
Definition api.h:249
Error structure.
Definition error.h:131
bj_bool bj_begin(int systems, struct bj_error **error)
Initializes the system.
void * bj_load_library(const char *path)
Load the provided dynamic library and returns and opaque handle to it.
void bj_end_system(enum bj_system system, struct bj_error **error)
De-initializes a single system with reference counting.
void bj_end(void)
De-initializes the system.
bj_system
Definition system.h:17
void bj_unload_library(void *handle)
Unload a library loaded with bj_load_library from memory.
void * bj_library_symbol(void *handle, const char *name)
Get the address of a function exported by handle given its name.
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_AUDIO_SYSTEM
Definition system.h:19
@ BJ_NO_SYSTEM
Definition system.h:18