Functions for loading shared libraries and looking up symbols.
More...
Functions for loading shared libraries and looking up symbols.
◆ infix_library_close()
Closes a dynamic library handle and unloads it.
- Parameters
-
lib | A handle to a previously opened library. Can be nullptr . |
◆ infix_library_get_symbol()
Retrieves the memory address of a symbol (function or global variable).
- Parameters
-
lib | A handle to a previously opened library. |
symbol_name | The name of the symbol to look up. |
- Returns
- A
void*
pointer to the symbol's address, or nullptr
if not found.
◆ infix_library_open()
Opens a dynamic library and returns a handle to it.
- Parameters
-
path | The file path to the dynamic library (.so, .dll, .dylib). |
- Returns
- A handle to the library on success, or
nullptr
on failure.
- Note
- The returned handle must be freed with
infix_library_close
.