summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-05-14 19:16:30 +0100
committerRoss Burton <ross@linux.intel.com>2009-05-15 08:30:53 +0100
commit8599e421db46b6a1e8662e2ef4cbd802725eec8e (patch)
treed477d1d7036bee15b97bfd30c22fc35db10e8ce4
parentd28314db681a0cb5b2c43632adbc85084da593ea (diff)
Document RestXmlNode
-rw-r--r--rest/rest-xml-parser.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/rest/rest-xml-parser.h b/rest/rest-xml-parser.h
index b6870d9..44fa060 100644
--- a/rest/rest-xml-parser.h
+++ b/rest/rest-xml-parser.h
@@ -54,14 +54,25 @@ typedef struct {
GObjectClass parent_class;
} RestXmlParserClass;
+/**
+ * RestXmlNode:
+ * @name: the name of the element
+ * @content: the textual content of the element
+ * @children: a #GHashTable of string name to #RestXmlNode for the children of
+ * the element.
+ * @attrs: a #GHashTable of string name to string values for the attributes of
+ * the element.
+ * @next: the sibling #RestXmlNode with the same name
+ */
typedef struct _RestXmlNode RestXmlNode;
struct _RestXmlNode {
- volatile int ref_count;
gchar *name;
gchar *content;
GHashTable *children;
GHashTable *attrs;
RestXmlNode *next;
+ /*< private >*/
+ volatile int ref_count;
};
GType rest_xml_parser_get_type (void);