2010-08-08 08:05:54 +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
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBXML
|
|
|
|
#include <libxml/tree.h>
|
|
|
|
typedef int (*xml_callback)(xmlDocPtr);
|
|
|
|
extern void xml_register_callback(xml_callback callback);
|
|
|
|
extern double xml_fvalue(xmlNodePtr node, const char * name, double dflt);
|
|
|
|
extern int xml_ivalue(xmlNodePtr node, const char * name, int dflt);
|
|
|
|
extern boolean xml_bvalue(xmlNodePtr node, const char * name, boolean dflt);
|
|
|
|
const xmlChar * xml_i(double number);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int read_xml(const char * filename, const char * catalog);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|