projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0368d6e
)
idxset: add enumeration macro PA_IDXSET_FOREACH
author
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Apr 2009 23:46:12 +0000
(
01:46
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Apr 2009 23:46:12 +0000
(
01:46
+0200)
src/pulsecore/idxset.h
patch
|
blob
|
history
diff --git
a/src/pulsecore/idxset.h
b/src/pulsecore/idxset.h
index 7531ea32f268feea0066156dbb1ac3f62cea62db..6b9ff472c509503603c6f17e0e63c04cbb643bde 100644
(file)
--- a/
src/pulsecore/idxset.h
+++ b/
src/pulsecore/idxset.h
@@
-103,4
+103,8
@@
unsigned pa_idxset_size(pa_idxset*s);
/* Return TRUE of the idxset is empty */
pa_bool_t pa_idxset_isempty(pa_idxset *s);
+
+#define PA_IDXSET_FOREACH(e, s, idx) \
+ for ((e) = pa_idxset_first((s), &(idx)); (e); (e) = pa_idxset_next((s), &(idx)))
+
#endif