summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 04:31:49 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-04 13:19:56 +0300
commit728abf50d9ee39be6e8e9bc5424084be6c9b0e95 (patch)
treef0ad5a3b0fb4c5c7a5abff04940e7aa9d0241101
parent0537c9f7df133c1625403165a7031e95527fa620 (diff)
downloadpulseaudio-728abf50d9ee39be6e8e9bc5424084be6c9b0e95.tar.gz
proplist: pa_proplist_to_string[_sep]: constify proplist pointer
-rw-r--r--src/pulse/proplist.c4
-rw-r--r--src/pulse/proplist.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c
index f9aaea5bd..75500246b 100644
--- a/src/pulse/proplist.c
+++ b/src/pulse/proplist.c
@@ -379,7 +379,7 @@ const char *pa_proplist_iterate(const pa_proplist *p, void **state) {
return prop->key;
}
-char *pa_proplist_to_string_sep(pa_proplist *p, const char *sep) {
+char *pa_proplist_to_string_sep(const pa_proplist *p, const char *sep) {
const char *key;
void *state = NULL;
pa_strbuf *buf;
@@ -437,7 +437,7 @@ char *pa_proplist_to_string_sep(pa_proplist *p, const char *sep) {
return pa_strbuf_to_string_free(buf);
}
-char *pa_proplist_to_string(pa_proplist *p) {
+char *pa_proplist_to_string(const pa_proplist *p) {
char *s, *t;
s = pa_proplist_to_string_sep(p, "\n");
diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h
index 9e0f706ea..f7a428261 100644
--- a/src/pulse/proplist.h
+++ b/src/pulse/proplist.h
@@ -374,12 +374,12 @@ const char *pa_proplist_iterate(const pa_proplist *p, void **state);
* works very much like pa_proplist_to_string_sep() and uses a newline
* as separator and appends one final one. Call pa_xfree() on the
* result. \since 0.9.11 */
-char *pa_proplist_to_string(pa_proplist *p);
+char *pa_proplist_to_string(const pa_proplist *p);
/** Format the property list nicely as a human readable string and
* choose the separator. Call pa_xfree() on the result. \since
* 0.9.15 */
-char *pa_proplist_to_string_sep(pa_proplist *p, const char *sep);
+char *pa_proplist_to_string_sep(const pa_proplist *p, const char *sep);
/** Allocate a new property list and assign key/value from a human
* readable string. \since 0.9.15 */