diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-07-20 17:34:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-07-20 17:34:17 +0200 |
commit | 18e975fc5ef68a89875c77974570884b9214a009 (patch) | |
tree | e0346c369315e71f386190c19ad4a1c06d5b526e /src/pulsecore/llist.h | |
parent | 3a09a88fd1f3dfe365dc1f3e455c097010d00964 (diff) |
mergedrtpoll
Diffstat (limited to 'src/pulsecore/llist.h')
-rw-r--r-- | src/pulsecore/llist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/llist.h b/src/pulsecore/llist.h index 77a1749f..43d1fbee 100644 --- a/src/pulsecore/llist.h +++ b/src/pulsecore/llist.h @@ -104,4 +104,10 @@ } \ } while (0) +#define PA_LLIST_FOREACH(i,head) \ + for (i = (head); i; i = i->next) + +#define PA_LLIST_FOREACH_FOR_DELETE(i,n,head) \ + for (i = (head), n = i ? i->next : NULL; i; i = n, n = i ? i ->next : NULL) + #endif |