|
libxml2
|
Dynamic module loading. More...
Typedefs | |
| typedef struct _xmlModule | xmlModule |
| A handle to a dynamically loaded module. | |
Enumerations | |
| enum | xmlModuleOption |
| enumeration of options that can be passed down to xmlModuleOpen | |
Functions | |
| xmlModule * | xmlModuleOpen (const char *filename, int options) |
| Opens a module/shared library given its name or path. | |
| int | xmlModuleSymbol (xmlModule *module, const char *name, void **result) |
| Lookup for a symbol address in the given module. | |
| int | xmlModuleClose (xmlModule *module) |
| The close operations unload the associated module and free the data associated to the module. | |
| int | xmlModuleFree (xmlModule *module) |
| The free operations free the data associated to the module but does not unload the associated shared library which may still be in use. | |
Dynamic module loading.
API for dynamic module loading. Only used by old libxslt versions and subject to removal.
| int xmlModuleClose | ( | xmlModule * | module | ) |
The close operations unload the associated module and free the data associated to the module.
| module | the module handle |
| int xmlModuleFree | ( | xmlModule * | module | ) |
The free operations free the data associated to the module but does not unload the associated shared library which may still be in use.
| module | the module handle |
| xmlModule * xmlModuleOpen | ( | const char * | name, |
| int | options ) |
Opens a module/shared library given its name or path.
NOTE: that due to portability issues, behaviour can only be guaranteed with name using ASCII. We cannot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * . TODO: options are not yet implemented.
| name | the module name |
| options | a set of xmlModuleOption |
| int xmlModuleSymbol | ( | xmlModule * | module, |
| const char * | name, | ||
| void ** | symbol ) |
Lookup for a symbol address in the given module.
NOTE: that due to portability issues, behaviour can only be guaranteed with name using ASCII. We cannot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * .
| module | the module |
| name | the name of the symbol |
| symbol | the resulting symbol address |