[telepathy-gabble/master] util.h: re-implement node iterator macros to use the Wocky API
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 11 07:56:13 PDT 2009
---
src/util.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/util.h b/src/util.h
index fe1b5b6..20376f1 100644
--- a/src/util.h
+++ b/src/util.h
@@ -31,10 +31,10 @@
#include "types.h"
-typedef LmMessageNode * NodeIter;
+typedef GSList * NodeIter;
#define node_iter(node) (node->children)
-#define node_iter_next(i) (i->next)
-#define node_iter_data(i) (i)
+#define node_iter_next(i) (g_slist_next (i))
+#define node_iter_data(i) ((LmMessageNode *) i->data)
/* 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