9 /* libxml stuff for the config reader */
10 #include <libxml/xmlmemory.h>
11 #include <libxml/parser.h>
12 #include <libxml/xpath.h>
13 #include <libxml/xpathInternals.h>
14 #include <libxml/tree.h>
18 #ifndef GENERIC_UTILS_H
19 #define GENERIC_UTILS_H
21 #define equals(a,b) !strcmp(a,b)
23 // ---------------------------------------------------------------------------------
25 // ---------------------------------------------------------------------------------
26 struct config_reader_struct {
28 xmlXPathContextPtr xpathCx;
30 struct config_reader_struct* next;
32 typedef struct config_reader_struct config_reader;
33 config_reader* conf_reader;
35 //void config_reader_init( char* config_file );
36 void config_reader_init( char* name, char* config_file );
38 void config_reader_free();
40 // allocastes a char*. FREE me.
41 char* config_value( const char* config_name, const char* xp_query, ... );