summaryrefslogtreecommitdiff
path: root/src/pulsecore/hashmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-29 15:16:58 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-29 15:16:58 +0000
commit8431fb17c2a3fe3732c2f8370152bb8715c1996a (patch)
tree9e48fb63cdb58291e02d46edfb5d6881b1e6feb0 /src/pulsecore/hashmap.h
parentc4f60d596083158334498dedb9f9e3021c67ae65 (diff)
allow on-the-fly deleting of hashmap entries wile we iterate through them
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2491 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/hashmap.h')
-rw-r--r--src/pulsecore/hashmap.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pulsecore/hashmap.h b/src/pulsecore/hashmap.h
index 98df4502..6a5e0f24 100644
--- a/src/pulsecore/hashmap.h
+++ b/src/pulsecore/hashmap.h
@@ -51,9 +51,10 @@ unsigned pa_hashmap_size(pa_hashmap *h);
/* May be used to iterate through the hashmap. Initially the opaque
pointer *state has to be set to NULL. The hashmap may not be
- modified during iteration. The key of the entry is returned in
- *key, if key is non-NULL. After the last entry in the hashmap NULL
- is returned. */
+ modified during iteration -- except for deleting the current entry
+ via pa_hashmap_remove(). The key of the entry is returned in *key,
+ if key is non-NULL. After the last entry in the hashmap NULL is
+ returned. */
void *pa_hashmap_iterate(pa_hashmap *h, void **state, const void**key);
void *pa_hashmap_steal_first(pa_hashmap *h);