From 12065f326ab62b396cbcbca3c5fd9e7d66162da2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Apr 2009 21:23:53 +0200 Subject: llist: add PA_LLIST_FOREACH --- src/pulsecore/llist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pulsecore/llist.h') 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 -- cgit