server/src/util/xml.h

36 lines
1.1 KiB
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
/* vi: set ts=2:
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
| | Enno Rehling <enno@eressea.de>
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
| (c) 1998 - 2003 | Henning Peters <faroul@beyond.kn-bremen.de>
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
+-------------------+ Stefan Reich <reich@halbling.de>
This program may not be used, modified or distributed
without prior permission by the authors of Eressea.
*/
#ifndef H_UTIL_XML
#define H_UTIL_XML
#ifdef __cplusplus
extern "C" {
#endif
2011-03-07 08:02:35 +01:00
2010-08-08 10:06:34 +02:00
/* new xml functions: */
#include <libxml/tree.h>
2011-03-07 08:02:35 +01:00
typedef int (*xml_callback) (xmlDocPtr);
2010-08-08 10:06:34 +02:00
extern void xml_register_callback(xml_callback callback);
2011-03-07 08:02:35 +01:00
extern int read_xml(const char *filename, const char *catalog);
extern double xml_fvalue(xmlNodePtr node, const char *name, double dflt);
extern int xml_ivalue(xmlNodePtr node, const char *name, int dflt);
extern bool xml_bvalue(xmlNodePtr node, const char *name, bool dflt);
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
const xmlChar *xml_i(double number);
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
}
#endif
#endif