2
3
4
5
6
7
8
9
10#ifndef GIMBAL_LIBRARY_H
11#define GIMBAL_LIBRARY_H
13#include "../strings/gimbal_string_list.h"
15#define GBL_SELF_TYPE GblLibrary
20
21
22
23
24
25
26
27
28
32typedef GblBool (*GblLibraryIterFn)(GblLibrary* pSelf,
void* pClosure);
35
36
37
52
53
54
55
63
64
65
66
#define GBL_FORWARD_DECLARE_STRUCT(S)
void GblLibrary_addSearchPath(const char *pPath)
Adds pPath to the list of paths to search when loading a library by name with GblLibrary_open()
size_t GblLibrary_count(void)
Returns the total number of open dynamic libraries.
GblLibrary * GblLibrary_at(size_t index)
Returns the open dynamic library at the given index.
GblBool GblLibrary_foreach(GblLibraryIterFn pFnIt, void *pCl)
Iterates over each open dynamic library, calling pFnInit with the given userdata.
const GblStringList * GblLibrary_searchPaths(void)
Returns the list of paths which are searched when attempting to load a library by name with GblLibrar...
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
uint16_t GblRefCount
Type able to hold a reference counter across the codebase.
GblRingList GblStringList
List of strings with array-like API.
const char GblStringRef
Reference-counted, const char*-compatible string type.
GblLibrary * GblLibrary_open(const char *pName)
Returns a reference to the library with the given file name, opening it if it wasn't already opened.