130 const char** p_names,
181 const char* backend_name,
General-purpose definitions for Banjo API.
Recoverable error handling.
uint32_t bj_bool
Boolean type used throughout the Banjo API.
bj_bool bj_begin(int systems, struct bj_error **error)
Initialises the system.
void bj_end_system(enum bj_system system, struct bj_error **error)
De-initialises 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.
size_t bj_video_backends(const char **p_names, size_t cap)
Enumerate the video backends compiled into this build.
void bj_end(void)
De-initialises the system.
bj_bool bj_begin_system(enum bj_system system, const char *backend_name, struct bj_error **error)
Initialise one subsystem (refcounted), optionally pinning a backend.
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.