summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 06:24:17 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-12 10:26:01 +0300
commit2c86dae27cae8d59a193e15e1ae0e8ca6cacb275 (patch)
tree51eab6d4659b4fc4fc9f7252670d7509305a2a63
parent05cb942d53385a30ef6002b1e0e0adaa32534e3d (diff)
downloadpulseaudio-2c86dae27cae8d59a193e15e1ae0e8ca6cacb275.tar.gz
context: pa_context_get_state: constify
-rw-r--r--src/pulse/context.c2
-rw-r--r--src/pulse/context.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index a63265df3..adbeb1531 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1058,7 +1058,7 @@ void pa_context_disconnect(pa_context *c) {
pa_context_set_state(c, PA_CONTEXT_TERMINATED);
}
-pa_context_state_t pa_context_get_state(pa_context *c) {
+pa_context_state_t pa_context_get_state(const pa_context *c) {
pa_assert(c);
pa_assert(PA_REFCNT_VALUE(c) >= 1);
diff --git a/src/pulse/context.h b/src/pulse/context.h
index d79661f58..7a38ff238 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -196,7 +196,7 @@ int pa_context_errno(pa_context *c);
int pa_context_is_pending(pa_context *c);
/** Return the current context status */
-pa_context_state_t pa_context_get_state(pa_context *c);
+pa_context_state_t pa_context_get_state(const pa_context *c);
/** Connect the context to the specified server. If server is NULL,
* connect to the default server. This routine may but will not always