]> code.delx.au - pulseaudio/commitdiff
llist: add PA_LLIST_FOREACH
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2009 19:23:53 +0000 (21:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2009 19:23:53 +0000 (21:23 +0200)
src/pulsecore/llist.h

index 77a1749f2b1c9f2d53a2a4b2223a194ae96e05fe..58b51c680a3c08eef3cb06a3aaabf2fdb3092794 100644 (file)
         }                                                               \
     } while (0)
 
+#define PA_LLIST_FOREACH(i,head)                                        \
+    for (i = (head); i; i = i->next)
+
 #endif