summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/llist.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-21 21:23:53 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-21 21:23:53 +0200
commit12065f326ab62b396cbcbca3c5fd9e7d66162da2 (patch)
treeb893d89ae085d6107f518261ba88726f3059fcf7 /src/pulsecore/llist.h
parent8fbf6269b340dd5c920bf90c8dc5f0da4bc062f3 (diff)
llist: add PA_LLIST_FOREACH
Diffstat (limited to 'src/pulsecore/llist.h')
-rw-r--r--src/pulsecore/llist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/llist.h b/src/pulsecore/llist.h
index 77a1749f..58b51c68 100644
--- a/src/pulsecore/llist.h
+++ b/src/pulsecore/llist.h
@@ -104,4 +104,7 @@
} \
} while (0)
+#define PA_LLIST_FOREACH(i,head) \
+ for (i = (head); i; i = i->next)
+
#endif