loudmouth/lm-message-node.h
changeset 710 ea3137a59c2b
parent 690 7ccf2113ec5f
--- a/loudmouth/lm-message-node.h	Sat Mar 19 16:38:54 2016 +0200
+++ b/loudmouth/lm-message-node.h	Sat Mar 19 16:39:49 2016 +0200
@@ -28,6 +28,23 @@
 G_BEGIN_DECLS
 
 /**
+ * LmMessageNodeAttribute:
+ * @name: attribute name
+ * @value: attribute value
+ * @next: next attribute
+ *
+ * Linked list of message node attributes.
+ */
+typedef struct _LmMessageNodeAttribute LmMessageNodeAttribute;
+
+struct _LmMessageNodeAttribute {
+    gchar *name;
+    gchar *value;
+
+    LmMessageNodeAttribute *next;
+};
+
+/**
  * LmMessageNode:
  * @name: the name of the node
  * @value: value of the node, can be NULL
@@ -36,6 +53,7 @@
  * @prev: previous sibling
  * @parent: node parent
  * @children: pointing to first child
+ * @attributes: linked list of node attributes
  *
  * A struct representing a node in a message.
  */
@@ -51,8 +69,9 @@
     LmMessageNode     *parent;
     LmMessageNode     *children;
 
+    LmMessageNodeAttribute *attributes;
+
     /* < private > */
-    GSList     *attributes;
     gint        ref_count;
 };