mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sample cache work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@98 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
527faf01d0
commit
bb0b105b83
17 changed files with 539 additions and 24 deletions
|
|
@ -168,3 +168,17 @@ int pa_hashmap_remove(struct pa_hashmap *h, const void *key) {
|
|||
unsigned pa_hashmap_ncontents(struct pa_hashmap *h) {
|
||||
return h->n_entries;
|
||||
}
|
||||
|
||||
void *pa_hashmap_iterate(struct pa_hashmap *h, void **state) {
|
||||
assert(h && state);
|
||||
|
||||
if (!*state) {
|
||||
*state = h->first_entry;
|
||||
} else
|
||||
*state = ((struct hashmap_entry*) *state)->next;
|
||||
|
||||
if (!*state)
|
||||
return NULL;
|
||||
|
||||
return ((struct hashmap_entry*) *state)->value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue