libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_library.h File Reference

Go to the source code of this file.

Typedefs

typedef GblBool(* GblLibraryIterFn) (GblLibrary *pSelf, void *pClosure)
 

Functions

Static API

Methods for search paths and iteration

const GblStringListGblLibrary_searchPaths (void)
 
void GblLibrary_addSearchPath (const char *pPath)
 
size_t GblLibrary_count (void)
 
GblLibraryGblLibrary_at (size_t index)
 
GblBool GblLibrary_foreach (GblLibraryIterFn pFnIt, void *pCl)
 

Detailed Description

GblLibrary, dynamically linked library management.

Author
2023 Falco Girgis

Definition in file gimbal_library.h.

Typedef Documentation

◆ GblLibraryIterFn

typedef GblBool(* GblLibraryIterFn) (GblLibrary *pSelf, void *pClosure)

Iterator function for use with GblLibrary_foreach(), exits early when GBL_TRUE is returned.

Definition at line 32 of file gimbal_library.h.

Function Documentation

◆ GblLibrary_searchPaths()

const GblStringList * GblLibrary_searchPaths ( void  )

Returns the list of paths which are searched when attempting to load a library by name with GblLibrary_open()

◆ GblLibrary_addSearchPath()

void GblLibrary_addSearchPath ( const char *  pPath)

Adds pPath to the list of paths to search when loading a library by name with GblLibrary_open()

◆ GblLibrary_count()

size_t GblLibrary_count ( void  )

Returns the total number of open dynamic libraries.

◆ GblLibrary_at()

GblLibrary * GblLibrary_at ( size_t  index)

Returns the open dynamic library at the given index.

◆ GblLibrary_foreach()

GblBool GblLibrary_foreach ( GblLibraryIterFn  pFnIt,
void *  pCl 
)

Iterates over each open dynamic library, calling pFnInit with the given userdata.