]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/llist.h
channelmap: Add 2.1 surround
[pulseaudio] / src / pulsecore / llist.h
index 77a1749f2b1c9f2d53a2a4b2223a194ae96e05fe..27f174a9eb1fdfd2a474b079b32d02e80f419ae9 100644 (file)
         }                                                               \
     } while (0)
 
+#define PA_LLIST_FOREACH(i,head)                                        \
+    for (i = (head); i; i = i->next)
+
+#define PA_LLIST_FOREACH_SAFE(i,n,head)                                 \
+    for (i = (head); i && ((n = i->next), 1); i = n)
+
 #endif