proplist: pa_proplist_equal: constify proplist pointers

This commit is contained in:
Lyndon Brown 2018-05-27 04:42:36 +01:00 committed by Arun Raghavan
parent 2562446c4a
commit 4af27c25d2
2 changed files with 2 additions and 2 deletions

View file

@ -674,7 +674,7 @@ int pa_proplist_isempty(const pa_proplist *p) {
return pa_hashmap_isempty(MAKE_HASHMAP_CONST(p)); return pa_hashmap_isempty(MAKE_HASHMAP_CONST(p));
} }
int pa_proplist_equal(pa_proplist *a, pa_proplist *b) { int pa_proplist_equal(const pa_proplist *a, const pa_proplist *b) {
const void *key = NULL; const void *key = NULL;
struct property *a_prop = NULL; struct property *a_prop = NULL;
struct property *b_prop = NULL; struct property *b_prop = NULL;

View file

@ -404,7 +404,7 @@ int pa_proplist_isempty(const pa_proplist *p);
/** Return non-zero when a and b have the same keys and values. /** Return non-zero when a and b have the same keys and values.
* \since 0.9.16 */ * \since 0.9.16 */
int pa_proplist_equal(pa_proplist *a, pa_proplist *b); int pa_proplist_equal(const pa_proplist *a, const pa_proplist *b);
PA_C_DECL_END PA_C_DECL_END