[telepathy-gabble/master] define macros for message node children iteration

Dafydd Harries daf at rhydd.org
Mon Jun 29 06:58:29 PDT 2009


---
 src/util.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/util.h b/src/util.h
index cc0d714..11c57e7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -31,6 +31,11 @@
 
 #include "types.h"
 
+typedef LmMessageNode * NodeIter;
+#define node_iter(node) (node->children)
+#define node_iter_next(i) (i->next)
+#define node_iter_data(i) (i)
+
 /* Guarantees that the resulting hash is in lower-case */
 gchar *sha1_hex (const gchar *bytes, guint len);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list