summaryrefslogtreecommitdiff
path: root/src/xml-parser.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-05-10 14:21:20 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-05-10 14:21:20 +0200
commit8a722d04938583dc3620de05fd52f0baecce9fbb (patch)
treedfee5472e5a88c450b8cc4abc71cc2a68d635e67 /src/xml-parser.h
parent3bca7e95f2b4ef351b89495afcb6d6230b5f7cd0 (diff)
downloadcataract-8a722d04938583dc3620de05fd52f0baecce9fbb.tar.xz
Consolidate data types
Diffstat (limited to 'src/xml-parser.h')
-rw-r--r--src/xml-parser.h18
1 files changed, 9 insertions, 9 deletions
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);