mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
idxset: add enumeration macro PA_IDXSET_FOREACH
This commit is contained in:
parent
0368d6e22b
commit
5d39b8d22d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue