hashmap: introduce PA_HASHMAP_FOREACH macro

This commit is contained in:
Lennart Poettering 2009-06-06 15:30:24 +02:00
parent e84644aa88
commit 496be212ad
2 changed files with 5 additions and 1 deletions

View file

@ -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)))