xmlmodule.h 967 Bytes
Newer Older
1 2 3
/*
 * Summary: dynamic module loading
 * Description: basic API for dynamic module loading, used by
4
 *              libexslt added in 2.6.17
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
 *
 * Copy: See Copyright for the status of this software.
 *
 * Author: Joel W. Reed
 */

#ifndef __XML_MODULE_H__
#define __XML_MODULE_H__

#include <libxml/xmlversion.h>

#ifdef LIBXML_MODULES_ENABLED

#ifdef __cplusplus
extern "C" {
#endif

/**
 * xmlModulePtr:
 *
 * A handle to a dynamically loaded module
 */
typedef struct _xmlModule xmlModule;
typedef xmlModule *xmlModulePtr;

#ifdef __cplusplus
}
#endif 

#ifdef __cplusplus
extern "C" {
#endif

XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen	(const char *filename);

XMLPUBFUN void* XMLCALL xmlModuleSymbol	(xmlModulePtr module, const char* name);

XMLPUBFUN int XMLCALL xmlModuleClose	(xmlModulePtr module);

XMLPUBFUN int XMLCALL xmlModuleFree	(xmlModulePtr module);

#ifdef __cplusplus
}
#endif 

#endif /* LIBXML_MODULES_ENABLED */

#endif /*__XML_MODULE_H__ */