diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-26 23:50:55 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-12 10:18:57 +0300 |
commit | 31a2784741deb10d06478d8a3296243fe800b159 (patch) | |
tree | c656b246f57b78cb262c869531456b19f43425a9 | |
parent | 4ad0a4a471fbe23a6dce727951280b8bb9574a17 (diff) | |
download | pulseaudio-31a2784741deb10d06478d8a3296243fe800b159.tar.gz |
context: pa_context_new_with_proplist: constify proplist param
-rw-r--r-- | src/pulse/context.c | 2 | ||||
-rw-r--r-- | src/pulse/context.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index e76950092..8722f3503 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -125,7 +125,7 @@ static void reset_callbacks(pa_context *c) { c->ext_stream_restore.userdata = NULL; } -pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, pa_proplist *p) { +pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, const pa_proplist *p) { pa_context *c; pa_mem_type_t type; diff --git a/src/pulse/context.h b/src/pulse/context.h index 2cb0776e5..9d4c926e8 100644 --- a/src/pulse/context.h +++ b/src/pulse/context.h @@ -174,7 +174,7 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name); /** Instantiate a new connection context with an abstract mainloop API * and an application name, and specify the initial client property * list. \since 0.9.11 */ -pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, pa_proplist *proplist); +pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, const pa_proplist *proplist); /** Decrease the reference counter of the context by one */ void pa_context_unref(pa_context *c); |