summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 04:10:53 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-04 13:19:36 +0300
commitb2c5195200087b5b5514af47d636e00c7bb86e9e (patch)
tree3377f3ddd2480c5709dc59396b3b504f30a89bcd
parent2d3abbbdd27c86cfaf1dbc587f69011e76b20ebb (diff)
downloadpulseaudio-b2c5195200087b5b5514af47d636e00c7bb86e9e.tar.gz
proplist: pa_proplist_gets: constify proplist pointer
-rw-r--r--src/pulse/proplist.c2
-rw-r--r--src/pulse/proplist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c
index 0da127ef8..f9aaea5bd 100644
--- a/src/pulse/proplist.c
+++ b/src/pulse/proplist.c
@@ -272,7 +272,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
return 0;
}
-const char *pa_proplist_gets(pa_proplist *p, const char *key) {
+const char *pa_proplist_gets(const pa_proplist *p, const char *key) {
struct property *prop;
pa_assert(p);
diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h
index 68900183c..9e0f706ea 100644
--- a/src/pulse/proplist.h
+++ b/src/pulse/proplist.h
@@ -311,7 +311,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
* the data is not valid UTF-8. Will return a NUL-terminated string in
* an internally allocated buffer. The caller should make a copy of
* the data before accessing the property list again. \since 0.9.11 */
-const char *pa_proplist_gets(pa_proplist *p, const char *key);
+const char *pa_proplist_gets(const pa_proplist *p, const char *key);
/** Store the value for the specified key in \a data. Will store a
* NUL-terminated string for string entries. The \a data pointer returned will