context: pa_context_get_index: constify

This commit is contained in:
Lyndon Brown 2018-06-07 03:56:51 +01:00 committed by Tanu Kaskinen
parent b88a219f32
commit 351731c697
2 changed files with 2 additions and 2 deletions

View file

@ -1361,7 +1361,7 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
return t; return t;
} }
uint32_t pa_context_get_index(pa_context *c) { uint32_t pa_context_get_index(const pa_context *c) {
pa_assert(c); pa_assert(c);
pa_assert(PA_REFCNT_VALUE(c) >= 1); pa_assert(PA_REFCNT_VALUE(c) >= 1);

View file

@ -256,7 +256,7 @@ pa_operation *pa_context_proplist_remove(pa_context *c, const char *const keys[]
* identified in the server with. This is useful for usage with the * identified in the server with. This is useful for usage with the
* introspection functions, such as pa_context_get_client_info(). * introspection functions, such as pa_context_get_client_info().
* Returns PA_INVALID_INDEX on error. \since 0.9.11 */ * Returns PA_INVALID_INDEX on error. \since 0.9.11 */
uint32_t pa_context_get_index(pa_context *s); uint32_t pa_context_get_index(const pa_context *s);
/** Create a new timer event source for the specified time (wrapper /** Create a new timer event source for the specified time (wrapper
* for mainloop->time_new). \since 0.9.16 */ * for mainloop->time_new). \since 0.9.16 */