From 18725265087dd7f8a8bf8e460b848826361d3f50 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 14 Jan 2009 00:06:26 +0100 Subject: add pa_proplist_size() and pa_proplist_isempty() --- src/pulse/proplist.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pulse/proplist.h') diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h index 217a770a..5d65ff3c 100644 --- a/src/pulse/proplist.h +++ b/src/pulse/proplist.h @@ -228,6 +228,12 @@ void pa_proplist_clear(pa_proplist *p); * the specific list. \since 0.9.11 */ pa_proplist* pa_proplist_copy(pa_proplist *t); +/** Return the number of entries on the property list. \since 0.9.15 */ +unsigned pa_proplist_size(pa_proplist *t); + +/** Returns 0 when the proplist is empty, positive otherwise \since 0.9.15 */ +int pa_proplist_isempty(pa_proplist *t); + PA_C_DECL_END #endif -- cgit