summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorDafydd Harries <daf@rhydd.org>2008-12-03 12:58:19 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-29 13:37:49 +0100
commit69b4a1bf765877d6cc85a7a8cd01b86fe0dcd86f (patch)
tree45221daaaf35b6bf11a992ffd90edc426f12f516 /src/util.h
parent8091ae5651033e35e8786f3c482194a66fcdcc7b (diff)
downloadtelepathy-gabble-69b4a1bf765877d6cc85a7a8cd01b86fe0dcd86f.tar.gz
define macros for message node children iteration
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index cc0d714e1..11c57e7a5 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);