From 31a2784741deb10d06478d8a3296243fe800b159 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 26 May 2018 23:50:55 +0100 Subject: context: pa_context_new_with_proplist: constify proplist param --- src/pulse/context.c | 2 +- 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); -- cgit v1.2.1