Debian Codegraph @

include/libxml/xmlmodule.h

raw
1 /**
2 * @file
3 *
4 * @brief Dynamic module loading
5 *
6 * API for dynamic module loading. Only used by old libxslt versions
7 * and subject to removal.
8 *
9 * @copyright See Copyright for the status of this software.
10 *
11 * @author Joel W. Reed
12 */
13
14 #ifndef __XML_MODULE_H__
15 #define __XML_MODULE_H__
16
17 #include <libxml/xmlversion.h>
18
19 #ifdef LIBXML_MODULES_ENABLED
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /**
26 * A handle to a dynamically loaded module
27 */
28 typedef struct _xmlModule xmlModule;
29 typedef xmlModule *xmlModulePtr;
30
31 /**
32 * enumeration of options that can be passed down to #xmlModuleOpen
33 */
34 typedef enum {
35 XML_MODULE_LAZY = 1, /* lazy binding */
36 XML_MODULE_LOCAL= 2 /* local binding */
37 } xmlModuleOption;
38
39 XML_DEPRECATED
40 XMLPUBFUN xmlModule *xmlModuleOpen (const char *filename,
41 int options);
42
43 XML_DEPRECATED
44 XMLPUBFUN int xmlModuleSymbol (xmlModule *module,
45 const char* name,
46 void **result);
47
48 XML_DEPRECATED
49 XMLPUBFUN int xmlModuleClose (xmlModule *module);
50
51 XML_DEPRECATED
52 XMLPUBFUN int xmlModuleFree (xmlModule *module);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* LIBXML_MODULES_ENABLED */
59
60 #endif /*__XML_MODULE_H__ */