context: pa_context_proplist_update: constify proplist pointer

This commit is contained in:
Lyndon Brown 2018-05-27 03:04:43 +01:00 committed by Arun Raghavan
parent 887150530a
commit 6161e106c0
2 changed files with 2 additions and 2 deletions

View file

@ -1369,7 +1369,7 @@ uint32_t pa_context_get_index(pa_context *c) {
return c->client_index; 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_operation *o;
pa_tagstruct *t; pa_tagstruct *t;
uint32_t tag; uint32_t tag;

View file

@ -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 * initially via pa_context_new_with_proplist() as possible instead a
* posteriori with this function, since that information may then be * 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 */ * 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 */ /** 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); pa_operation *pa_context_proplist_remove(pa_context *c, const char *const keys[], pa_context_success_cb_t cb, void *userdata);