From 8a722d04938583dc3620de05fd52f0baecce9fbb Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 10 May 2009 14:21:20 +0200 Subject: Consolidate data types --- src/xml-parser.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/xml-parser.h') diff --git a/src/xml-parser.h b/src/xml-parser.h index 02be628..53abf08 100644 --- a/src/xml-parser.h +++ b/src/xml-parser.h @@ -22,8 +22,8 @@ typedef struct { - xmlDocPtr doc; - xmlXPathContextPtr xpathCtx; + xmlDocPtr doc; + xmlXPathContextPtr xpathCtx; } TXMLFile; @@ -31,7 +31,7 @@ typedef struct { /* * xml_parser_load: initialize and load the XML document */ -TXMLFile * xml_parser_load (const char *filename); +TXMLFile * xml_parser_load (const gchar *filename); /* * xml_parser_close: close the XML document parser @@ -41,27 +41,27 @@ void xml_parser_close (TXMLFile *file); /* * xml_file_get_node_name: retrieve name of the XPath node */ -char * xml_file_get_node_name (TXMLFile *file, const char *x_path); +gchar * xml_file_get_node_name (TXMLFile *file, const gchar *x_path); /* * xml_file_get_node_value: retrieve string value from XPath node * - multiple matched nodes will be concatenated into one string * - otherwise please use [0], [1] etc. quantificators */ -char * xml_file_get_node_value (TXMLFile *file, const char *x_path); +gchar * xml_file_get_node_value (TXMLFile *file, const gchar *x_path); /* * xml_file_get_node_attribute: retrieve attribute value from XPath node */ -char * xml_file_get_node_attribute (TXMLFile *file, const char *x_path, const char *attr); -long xml_file_get_node_attribute_long (TXMLFile *file, const char *x_path, const char *attr, const int _default); +gchar * xml_file_get_node_attribute (TXMLFile *file, const gchar *x_path, const gchar *attr); +long int xml_file_get_node_attribute_long (TXMLFile *file, const gchar *x_path, const gchar *attr, const int _default); /* * xml_file_get_node_present: existency test of the XPath node */ -gboolean xml_file_get_node_present (TXMLFile *file, const char *x_path); +gboolean xml_file_get_node_present (TXMLFile *file, const gchar *x_path); /* * xml_file_node_get_children_count: retrieve number of children items of the specified XPath node */ -int xml_file_node_get_children_count (TXMLFile *file, const char *x_path); +int xml_file_node_get_children_count (TXMLFile *file, const gchar *x_path); -- cgit v1.2.3