mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
hashmap: implement pa_hashmap_last()
This commit is contained in:
parent
a1d84e3935
commit
c6830bd9dc
2 changed files with 12 additions and 0 deletions
|
|
@ -279,6 +279,15 @@ void* pa_hashmap_first(pa_hashmap *h) {
|
|||
return h->iterate_list_head->value;
|
||||
}
|
||||
|
||||
void* pa_hashmap_last(pa_hashmap *h) {
|
||||
pa_assert(h);
|
||||
|
||||
if (!h->iterate_list_tail)
|
||||
return NULL;
|
||||
|
||||
return h->iterate_list_tail->value;
|
||||
}
|
||||
|
||||
void* pa_hashmap_steal_first(pa_hashmap *h) {
|
||||
void *data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue