Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
libxml/xmlmodule.h@0:03b5121a232e, 2016-08-25 (annotated)
- Committer:
- pcercuei
- Date:
- Thu Aug 25 10:05:35 2016 +0000
- Revision:
- 0:03b5121a232e
Add basic C files of libxml2 2.9.4
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pcercuei | 0:03b5121a232e | 1 | /* |
| pcercuei | 0:03b5121a232e | 2 | * Summary: dynamic module loading |
| pcercuei | 0:03b5121a232e | 3 | * Description: basic API for dynamic module loading, used by |
| pcercuei | 0:03b5121a232e | 4 | * libexslt added in 2.6.17 |
| pcercuei | 0:03b5121a232e | 5 | * |
| pcercuei | 0:03b5121a232e | 6 | * Copy: See Copyright for the status of this software. |
| pcercuei | 0:03b5121a232e | 7 | * |
| pcercuei | 0:03b5121a232e | 8 | * Author: Joel W. Reed |
| pcercuei | 0:03b5121a232e | 9 | */ |
| pcercuei | 0:03b5121a232e | 10 | |
| pcercuei | 0:03b5121a232e | 11 | #ifndef __XML_MODULE_H__ |
| pcercuei | 0:03b5121a232e | 12 | #define __XML_MODULE_H__ |
| pcercuei | 0:03b5121a232e | 13 | |
| pcercuei | 0:03b5121a232e | 14 | #include <libxml/xmlversion.h> |
| pcercuei | 0:03b5121a232e | 15 | |
| pcercuei | 0:03b5121a232e | 16 | #ifdef LIBXML_MODULES_ENABLED |
| pcercuei | 0:03b5121a232e | 17 | |
| pcercuei | 0:03b5121a232e | 18 | #ifdef __cplusplus |
| pcercuei | 0:03b5121a232e | 19 | extern "C" { |
| pcercuei | 0:03b5121a232e | 20 | #endif |
| pcercuei | 0:03b5121a232e | 21 | |
| pcercuei | 0:03b5121a232e | 22 | /** |
| pcercuei | 0:03b5121a232e | 23 | * xmlModulePtr: |
| pcercuei | 0:03b5121a232e | 24 | * |
| pcercuei | 0:03b5121a232e | 25 | * A handle to a dynamically loaded module |
| pcercuei | 0:03b5121a232e | 26 | */ |
| pcercuei | 0:03b5121a232e | 27 | typedef struct _xmlModule xmlModule; |
| pcercuei | 0:03b5121a232e | 28 | typedef xmlModule *xmlModulePtr; |
| pcercuei | 0:03b5121a232e | 29 | |
| pcercuei | 0:03b5121a232e | 30 | /** |
| pcercuei | 0:03b5121a232e | 31 | * xmlModuleOption: |
| pcercuei | 0:03b5121a232e | 32 | * |
| pcercuei | 0:03b5121a232e | 33 | * enumeration of options that can be passed down to xmlModuleOpen() |
| pcercuei | 0:03b5121a232e | 34 | */ |
| pcercuei | 0:03b5121a232e | 35 | typedef enum { |
| pcercuei | 0:03b5121a232e | 36 | XML_MODULE_LAZY = 1, /* lazy binding */ |
| pcercuei | 0:03b5121a232e | 37 | XML_MODULE_LOCAL= 2 /* local binding */ |
| pcercuei | 0:03b5121a232e | 38 | } xmlModuleOption; |
| pcercuei | 0:03b5121a232e | 39 | |
| pcercuei | 0:03b5121a232e | 40 | XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename, |
| pcercuei | 0:03b5121a232e | 41 | int options); |
| pcercuei | 0:03b5121a232e | 42 | |
| pcercuei | 0:03b5121a232e | 43 | XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module, |
| pcercuei | 0:03b5121a232e | 44 | const char* name, |
| pcercuei | 0:03b5121a232e | 45 | void **result); |
| pcercuei | 0:03b5121a232e | 46 | |
| pcercuei | 0:03b5121a232e | 47 | XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module); |
| pcercuei | 0:03b5121a232e | 48 | |
| pcercuei | 0:03b5121a232e | 49 | XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module); |
| pcercuei | 0:03b5121a232e | 50 | |
| pcercuei | 0:03b5121a232e | 51 | #ifdef __cplusplus |
| pcercuei | 0:03b5121a232e | 52 | } |
| pcercuei | 0:03b5121a232e | 53 | #endif |
| pcercuei | 0:03b5121a232e | 54 | |
| pcercuei | 0:03b5121a232e | 55 | #endif /* LIBXML_MODULES_ENABLED */ |
| pcercuei | 0:03b5121a232e | 56 | |
| pcercuei | 0:03b5121a232e | 57 | #endif /*__XML_MODULE_H__ */ |
| pcercuei | 0:03b5121a232e | 58 |