context: pa_context_get_server_protocol_version: constify

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

View file

@ -1338,7 +1338,7 @@ uint32_t pa_context_get_protocol_version(const pa_context *c) {
return PA_PROTOCOL_VERSION;
}
uint32_t pa_context_get_server_protocol_version(pa_context *c) {
uint32_t pa_context_get_server_protocol_version(const pa_context *c) {
pa_assert(c);
pa_assert(PA_REFCNT_VALUE(c) >= 1);

View file

@ -240,7 +240,7 @@ uint32_t pa_context_get_protocol_version(const pa_context *c);
/** Return the protocol version of the connected server.
* Returns PA_INVALID_INDEX on error. */
uint32_t pa_context_get_server_protocol_version(pa_context *c);
uint32_t pa_context_get_server_protocol_version(const pa_context *c);
/** Update the property list of the client, adding new entries. Please
* note that it is highly recommended to set as many properties