diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-27 04:35:33 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-04 13:20:02 +0300 |
commit | 9f9dfe8245dc0b46ecd5359a52fe5224c95aa103 (patch) | |
tree | 14c6ef1dc7e8166b386b46073c5c3844d0ce67c1 | |
parent | 728abf50d9ee39be6e8e9bc5424084be6c9b0e95 (diff) | |
download | pulseaudio-9f9dfe8245dc0b46ecd5359a52fe5224c95aa103.tar.gz |
proplist: pa_proplist_contains: constify proplist pointer
-rw-r--r-- | src/pulse/proplist.c | 2 | ||||
-rw-r--r-- | src/pulse/proplist.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 75500246b..4ad092d65 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -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); diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h index f7a428261..c148c793d 100644 --- a/src/pulse/proplist.h +++ b/src/pulse/proplist.h @@ -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); |