libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_Library Struct Reference

Dynamic library loader. More...

Data Fields

void *(* GetProcedure )(const CMUTIL_Library *lib, const char *proc_name)
 Get a procedure (function) from the dynamic library.
 
void(* Destroy )(CMUTIL_Library *lib)
 Destroy the dynamic library loader and unload the library.
 

Detailed Description

Dynamic library loader.

Field Documentation

◆ GetProcedure

void *(* CMUTIL_Library::GetProcedure) (const CMUTIL_Library *lib, const char *proc_name)

Get a procedure (function) from the dynamic library.

This function retrieves a pointer to a function with the specified name from the loaded dynamic library.

Parameters
libA pointer to the CMUTIL_Library object representing the loaded dynamic library.
proc_nameThe name of the procedure (function) to retrieve.
Returns
A pointer to the requested procedure, or NULL if the procedure was not found.

◆ Destroy

void(* CMUTIL_Library::Destroy) (CMUTIL_Library *lib)

Destroy the dynamic library loader and unload the library.

This function unloads the dynamic library associated with the CMUTIL_Library object and frees any associated resources. After calling this function, the CMUTIL_Library object should not be used again.

Parameters
libA pointer to the CMUTIL_Library object to be destroyed.

The documentation for this struct was generated from the following file: