Banjo API 0.0.1
Multi-purpose C99 API
Loading...
Searching...
No Matches
system.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <banjo/api.h>
14#include <banjo/error.h>
15
26BANJO_EXPORT bj_bool bj_begin(
27 bj_error** p_error
28);
29
35BANJO_EXPORT void bj_end(
36 bj_error** p_error
37);
38
67BANJO_EXPORT void* bj_load_library(
68 const char* p_path
69);
70
95BANJO_EXPORT void bj_unload_library(
96 void* p_handle
97);
98
126BANJO_EXPORT void* bj_get_symbol(
127 void* p_handle,
128 const char* p_name
129);
130
General-purpose definitions for Banjo API.
Recoverable error handling.
Error structure.
Definition error.h:131
void bj_end(bj_error **p_error)
De-initializes the system.
void * bj_get_symbol(void *p_handle, const char *p_name)
Get the address of a function exported by p_handle given its name.
void * bj_load_library(const char *p_path)
Load the provided dynamic library and returns and opaque handle to it.
bj_bool bj_begin(bj_error **p_error)
Initializes the system.
void bj_unload_library(void *p_handle)
Unload a library loaded with bj_load_library from memory.