From 6161e106c01412838feaeefa1e6d29257d18bc02 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 27 May 2018 03:04:43 +0100 Subject: [PATCH] context: pa_context_proplist_update: constify proplist pointer --- 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 6adfc5a..e769500 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -1369,7 +1369,7 @@ uint32_t pa_context_get_index(pa_context *c) { return c->client_index; } -pa_operation *pa_context_proplist_update(pa_context *c, pa_update_mode_t mode, pa_proplist *p, pa_context_success_cb_t cb, void *userdata) { +pa_operation *pa_context_proplist_update(pa_context *c, pa_update_mode_t mode, const pa_proplist *p, pa_context_success_cb_t cb, void *userdata) { pa_operation *o; pa_tagstruct *t; uint32_t tag; diff --git a/src/pulse/context.h b/src/pulse/context.h index 9b96f8c..2cb0776 100644 --- a/src/pulse/context.h +++ b/src/pulse/context.h @@ -247,7 +247,7 @@ uint32_t pa_context_get_server_protocol_version(pa_context *c); * initially via pa_context_new_with_proplist() as possible instead a * posteriori with this function, since that information may then be * used to route streams of the client to the right device. \since 0.9.11 */ -pa_operation *pa_context_proplist_update(pa_context *c, pa_update_mode_t mode, pa_proplist *p, pa_context_success_cb_t cb, void *userdata); +pa_operation *pa_context_proplist_update(pa_context *c, pa_update_mode_t mode, const pa_proplist *p, pa_context_success_cb_t cb, void *userdata); /** Update the property list of the client, remove entries. \since 0.9.11 */ pa_operation *pa_context_proplist_remove(pa_context *c, const char *const keys[], pa_context_success_cb_t cb, void *userdata); -- 2.7.4