diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-28 01:12:39 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-12 10:21:51 +0300 |
commit | 05cb942d53385a30ef6002b1e0e0adaa32534e3d (patch) | |
tree | f5e0993a4c9d3a04d1da133ff6ad65f86c489426 | |
parent | 31a2784741deb10d06478d8a3296243fe800b159 (diff) | |
download | pulseaudio-05cb942d53385a30ef6002b1e0e0adaa32534e3d.tar.gz |
context: pa_context_get_protocol_version: constify
-rw-r--r-- | src/pulse/context.c | 2 | ||||
-rw-r--r-- | 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 8722f3503..a63265df3 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -1331,7 +1331,7 @@ const char* pa_context_get_server(pa_context *c) { return c->server; } -uint32_t pa_context_get_protocol_version(pa_context *c) { +uint32_t pa_context_get_protocol_version(const pa_context *c) { return PA_PROTOCOL_VERSION; } diff --git a/src/pulse/context.h b/src/pulse/context.h index 9d4c926e8..d79661f58 100644 --- a/src/pulse/context.h +++ b/src/pulse/context.h @@ -236,7 +236,7 @@ pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_su const char* pa_context_get_server(pa_context *c); /** Return the protocol version of the library. */ -uint32_t pa_context_get_protocol_version(pa_context *c); +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. */ |