proplist: pa_proplist_contains: constify proplist pointer

This commit is contained in:
Lyndon Brown 2018-05-27 04:35:33 +01:00 committed by Arun Raghavan
parent 25b55284db
commit 5a146049df
2 changed files with 2 additions and 2 deletions

View file

@ -632,7 +632,7 @@ fail:
return NULL; return NULL;
} }
int pa_proplist_contains(pa_proplist *p, const char *key) { int pa_proplist_contains(const pa_proplist *p, const char *key) {
pa_assert(p); pa_assert(p);
pa_assert(key); pa_assert(key);

View file

@ -387,7 +387,7 @@ pa_proplist *pa_proplist_from_string(const char *str);
/** Returns 1 if an entry for the specified key exists in the /** Returns 1 if an entry for the specified key exists in the
* property list. Returns negative on error. \since 0.9.11 */ * property list. Returns negative on error. \since 0.9.11 */
int pa_proplist_contains(pa_proplist *p, const char *key); int pa_proplist_contains(const pa_proplist *p, const char *key);
/** Remove all entries from the property list object. \since 0.9.11 */ /** Remove all entries from the property list object. \since 0.9.11 */
void pa_proplist_clear(pa_proplist *p); void pa_proplist_clear(pa_proplist *p);