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
22
35 int systems,
36 struct bj_error** error
37);
38
47 void
48);
49
66 enum bj_system system,
67 struct bj_error** error
68);
69
83 enum bj_system system,
84 struct bj_error** error
85);
86
116 const char* path
117);
118
144 void* handle
145);
146
175 void* handle,
176 const char* name
177);
178
179#endif
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