mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add pa_proplist_size() and pa_proplist_isempty()
This commit is contained in:
parent
ef5a2b5f2c
commit
1872526508
2 changed files with 18 additions and 0 deletions
|
|
@ -406,3 +406,15 @@ pa_proplist* pa_proplist_copy(pa_proplist *template) {
|
|||
|
||||
return p;
|
||||
}
|
||||
|
||||
unsigned pa_proplist_size(pa_proplist *p) {
|
||||
pa_assert(p);
|
||||
|
||||
return pa_hashmap_size(MAKE_HASHMAP(p));
|
||||
}
|
||||
|
||||
int pa_proplist_isempty(pa_proplist *p) {
|
||||
pa_assert(p);
|
||||
|
||||
return pa_hashmap_isempty(MAKE_HASHMAP(p));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue