libamxo
4.3.4
Object Definition Language (ODL) parsing
|
Functions | |
int | amxo_resolver_import_open (amxo_parser_t *parser, const char *so_name, const char *alias, int flags) |
Opens a shared object file (.so file) More... | |
void | amxo_resolver_import_close_all (void) |
Unloads all loaded shared objects. More... | |
void amxo_resolver_import_close_all | ( | void | ) |
Unloads all loaded shared objects.
Removes all loaded shared objects from memory, regardless whether they are referenced. This function is typically called just before exiting the application,
Definition at line 451 of file amxo_import_resolver.c.
int amxo_resolver_import_open | ( | amxo_parser_t * | parser, |
const char * | so_name, | ||
const char * | alias, | ||
int | flags | ||
) |
Opens a shared object file (.so file)
The import function resolver can load shared objects. During parsing of the odl file all "import" mentions will call this method to open and load the shared object.
Using this function it is possible to load shared objects prior to start parsing an odl file.
After parsing the referenced shared objects are kept in memory. When they are not needed anymore they can be unloaded by using amxo_resolver_import_close_all
parser | the odl parser instance |
so_name | file name of the shared object (can include relative or absolute path). |
alias | alias for the shared object, makes it easier to use in odl files |
flags | dlopen flags |
Returns 0 when the function is removed from the function table.
Definition at line 354 of file amxo_import_resolver.c.