proplist: pa_proplist_contains: constify proplist pointer
authorLyndon Brown <jnqnfe@gmail.com>
Sun, 27 May 2018 03:35:33 +0000 (04:35 +0100)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 21 Jun 2018 01:00:25 +0000 (06:30 +0530)
src/pulse/proplist.c
src/pulse/proplist.h

index 7550024..4ad092d 100644 (file)
@@ -632,7 +632,7 @@ fail:
     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(key);
 
index f7a4282..c148c79 100644 (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
  * 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 */
 void pa_proplist_clear(pa_proplist *p);