diff options
Diffstat (limited to 'common/eurephia_xml.h')
-rw-r--r-- | common/eurephia_xml.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/eurephia_xml.h b/common/eurephia_xml.h index 26cbd33..57b9073 100644 --- a/common/eurephia_xml.h +++ b/common/eurephia_xml.h @@ -22,6 +22,10 @@ #ifndef EUREPHIA_XML_H_ # define EUREPHIA_XML_H_ +typedef enum _exmlResultType { exmlRESULT = 1, exmlERROR } exmlResultType; + +#include <stdarg.h> + #ifdef HAVE_LIBXML2 #include <libxml/tree.h> @@ -31,6 +35,8 @@ xmlNode *xmlFindNode(xmlNode *node, const char *key); int eurephiaXML_CreateDoc(eurephiaCTX *ctx, int format, const char *rootname, xmlDoc **doc, xmlNode **root_n); xmlNode *eurephiaXML_getRoot(eurephiaCTX *ctx, xmlDoc *doc, const char *nodeset, int min_format); +xmlDoc *eurephiaXML_ResultMsg(eurephiaCTX *ctx, exmlResultType type, const char *fmt, ... ); + inline char *xmlExtractContent(xmlNode *n); inline char *xmlGetNodeContent(xmlNode *node, const char *key); |