context: pa_context_get_server: constify

This commit is contained in:
Lyndon Brown 2018-06-07 03:55:42 +01:00 committed by Tanu Kaskinen
parent 792c2f0d7b
commit b4b37a0e66
2 changed files with 2 additions and 2 deletions

View file

@ -1319,7 +1319,7 @@ const char* pa_get_library_version(void) {
return pa_get_headers_version(); return pa_get_headers_version();
} }
const char* pa_context_get_server(pa_context *c) { const char* pa_context_get_server(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

@ -233,7 +233,7 @@ int pa_context_is_local(const pa_context *c);
pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata); pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);
/** Return the server name this context is connected to. */ /** Return the server name this context is connected to. */
const char* pa_context_get_server(pa_context *c); const char* pa_context_get_server(const pa_context *c);
/** Return the protocol version of the library. */ /** Return the protocol version of the library. */
uint32_t pa_context_get_protocol_version(const pa_context *c); uint32_t pa_context_get_protocol_version(const pa_context *c);