infix
A JIT-Powered FFI Library for C
|
Functions for interacting with shared libraries and their global variables. More...
Functions | |
infix_status | infix_read_global (infix_library_t *, const char *, const char *, void *) |
Reads the value of a global variable from a loaded library. | |
infix_status | infix_write_global (infix_library_t *, const char *, const char *, void *) |
Writes a value to a global variable in a loaded library. | |
Functions for interacting with shared libraries and their global variables.
infix_status infix_read_global | ( | infix_library_t * | lib, |
const char * | symbol_name, | ||
const char * | type_signature, | ||
void * | buffer | ||
) |
Reads the value of a global variable from a loaded library.
lib | A handle to a loaded dynamic library. |
symbol_name | The name of the global variable. |
type_signature | A signature string describing the variable's type. |
buffer | A pointer to a buffer to store the value. |
infix_status infix_write_global | ( | infix_library_t * | lib, |
const char * | symbol_name, | ||
const char * | type_signature, | ||
void * | buffer | ||
) |
Writes a value to a global variable in a loaded library.
lib | A handle to a loaded dynamic library. |
symbol_name | The name of the global variable. |
type_signature | A signature string describing the variable's type. |
buffer | A pointer to the new value. |