00001 /*************************************************************************** 00002 begin : Wed Dec 20 2006 00003 copyright : (C) 2006 by Alper Akcan 00004 email : distchx@yahoo.com 00005 ***************************************************************************/ 00006 00007 /*************************************************************************** 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU Lesser General Public License as * 00011 * published by the Free Software Foundation; either version 2.1 of the * 00012 * License, or (at your option) any later version. * 00013 * * 00014 ***************************************************************************/ 00015 00016 #ifndef PARSE_H_ 00017 #define PARSE_H_ 00018 00019 typedef struct xml_data_s { 00020 char *path; 00021 node_t *active; 00022 node_t *root; 00023 node_t *elem; 00024 } xml_data_t; 00025 00026 void parse_xml_start (void *x_data, const char *el, const char **attr); 00027 void parse_xml_end (void *x_data, const char *el); 00028 void parse_xml_char_hndl_fixup (char *out); 00029 void parse_xml_char_hndl (void *x_data, const char *txt, int txtlen); 00030 int parse_xml_file (xml_data_t *xdata, char *name); 00031 00032 #endif /*PARSE_H_*/
1.4.7