]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/llist.h
remap: Change remapping function argument type from void to int16_t / float as approp...
[pulseaudio] / src / pulsecore / llist.h
index 58b51c680a3c08eef3cb06a3aaabf2fdb3092794..27f174a9eb1fdfd2a474b079b32d02e80f419ae9 100644 (file)
 #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