| 30 #ifndef PURPLE_GG_XML_H |
30 #ifndef PURPLE_GG_XML_H |
| 31 #define PURPLE_GG_XML_H |
31 #define PURPLE_GG_XML_H |
| 32 |
32 |
| 33 #include <purple.h> |
33 #include <purple.h> |
| 34 |
34 |
| 35 gboolean ggp_xml_get_string(const PurpleXmlNode *xml, gchar *childName, gchar **var); |
35 gboolean ggp_xml_get_string(const PurpleXmlNode *xml, const gchar *childName, gchar **var); |
| 36 gboolean ggp_xml_get_bool(const PurpleXmlNode *xml, gchar *childName, gboolean *var); |
36 gboolean ggp_xml_get_bool(const PurpleXmlNode *xml, const gchar *childName, gboolean *var); |
| 37 gboolean ggp_xml_get_uint(const PurpleXmlNode *xml, gchar *childName, unsigned int *var); |
37 gboolean ggp_xml_get_uint(const PurpleXmlNode *xml, const gchar *childName, unsigned int *var); |
| 38 |
38 |
| 39 gboolean ggp_xml_set_string(PurpleXmlNode *xml, gchar *childName, const gchar *val); |
39 gboolean ggp_xml_set_string(PurpleXmlNode *xml, const gchar *childName, const gchar *val); |
| 40 gboolean ggp_xml_set_bool(PurpleXmlNode *xml, gchar *childName, gboolean val); |
40 gboolean ggp_xml_set_bool(PurpleXmlNode *xml, const gchar *childName, gboolean val); |
| 41 gboolean ggp_xml_set_uint(PurpleXmlNode *xml, gchar *childName, unsigned int val); |
41 gboolean ggp_xml_set_uint(PurpleXmlNode *xml, const gchar *childName, unsigned int val); |
| 42 |
42 |
| 43 void ggp_xmlnode_remove_children(PurpleXmlNode *xml); |
43 void ggp_xmlnode_remove_children(PurpleXmlNode *xml); |
| 44 |
44 |
| 45 unsigned int ggp_xml_child_count(PurpleXmlNode *xml, const gchar *childName); |
45 unsigned int ggp_xml_child_count(PurpleXmlNode *xml, const gchar *childName); |
| 46 |
46 |