diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2012-02-08 19:31:40 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2012-02-08 19:31:40 +0400 |
commit | 6cef75a6df920f13a42b0ab17e2539aacc5e79e5 (patch) | |
tree | d1c55edd9d471d83d189d99b7c02598b4b2e3ed2 /saedit/xml.h | |
parent | 1658a87e34715363a73e1b969c04595ca439d476 (diff) | |
download | evol-tools-6cef75a6df920f13a42b0ab17e2539aacc5e79e5.tar.gz evol-tools-6cef75a6df920f13a42b0ab17e2539aacc5e79e5.tar.bz2 evol-tools-6cef75a6df920f13a42b0ab17e2539aacc5e79e5.tar.xz evol-tools-6cef75a6df920f13a42b0ab17e2539aacc5e79e5.zip |
SAE: Removing dependencies of ibus
Diffstat (limited to 'saedit/xml.h')
-rw-r--r-- | saedit/xml.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/saedit/xml.h b/saedit/xml.h index cf76795..4030d72 100644 --- a/saedit/xml.h +++ b/saedit/xml.h @@ -11,14 +11,31 @@ #ifndef XML_H #define XML_H +#include <stdio.h> #include <glib.h> -#include <ibus.h> #include "common.h" -gchar **xml_attr_new(const gchar *name, const gchar *value); -gchar *xml_node_get_attr_value(const XMLNode *node, const gchar *attr_name); -gint xml_node_compare_with_name_func(gconstpointer a, gconstpointer b); -gint xml_node_compare_with_action_node_by_imageset_name_func(gconstpointer a, gconstpointer b); -gint xml_node_compare_with_attr_func(const XMLNode *node, const gchar **attr); +typedef struct { + gchar *name; + gchar *text; + gchar **attributes; + GList *sub_nodes; +} XMLNode; + + +XMLNode *xml_parse_file (const gchar *name); + +XMLNode *xml_parse_buffer (const gchar *buffer); + +void xml_free (XMLNode *node); + +void xml_output (const XMLNode *node, + GString *output); + +gchar **xml_attr_new(const gchar *name, const gchar *value); +gchar *xml_node_get_attr_value(const XMLNode *node, const gchar *attr_name); +gint xml_node_compare_with_name_func(gconstpointer a, gconstpointer b); +gint xml_node_compare_with_action_node_by_imageset_name_func(gconstpointer a, gconstpointer b); +gint xml_node_compare_with_attr_func(const XMLNode *node, const gchar **attr); #endif |