mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
hashmap: introduce PA_HASHMAP_FOREACH macro
This commit is contained in:
parent
e84644aa88
commit
496be212ad
2 changed files with 5 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ unsigned pa_idxset_size(pa_idxset*s);
|
|||
/* Return TRUE of the idxset is empty */
|
||||
pa_bool_t pa_idxset_isempty(pa_idxset *s);
|
||||
|
||||
|
||||
/* A macro to ease iteration through all entries */
|
||||
#define PA_IDXSET_FOREACH(e, s, idx) \
|
||||
for ((e) = pa_idxset_first((s), &(idx)); (e); (e) = pa_idxset_next((s), &(idx)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue