summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 06:14:29 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-12 10:31:19 +0300
commit805d7603ffcbad8134b788ad1558989ee6a3aa75 (patch)
tree89d89ce8e35aa38c5e622a194bda4635d7fa5218
parentefc2f7ea4c015fa3aa226d28e41c84b3d27e872e (diff)
downloadpulseaudio-805d7603ffcbad8134b788ad1558989ee6a3aa75.tar.gz
operation: pa_operation_get_state: constify
-rw-r--r--src/pulse/operation.c2
-rw-r--r--src/pulse/operation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/operation.c b/src/pulse/operation.c
index 3ed3143f8..61adf69b0 100644
--- a/src/pulse/operation.c
+++ b/src/pulse/operation.c
@@ -129,7 +129,7 @@ void pa_operation_done(pa_operation *o) {
operation_set_state(o, PA_OPERATION_DONE);
}
-pa_operation_state_t pa_operation_get_state(pa_operation *o) {
+pa_operation_state_t pa_operation_get_state(const pa_operation *o) {
pa_assert(o);
pa_assert(PA_REFCNT_VALUE(o) >= 1);
diff --git a/src/pulse/operation.h b/src/pulse/operation.h
index edd7d76e5..302b85baa 100644
--- a/src/pulse/operation.h
+++ b/src/pulse/operation.h
@@ -49,7 +49,7 @@ void pa_operation_unref(pa_operation *o);
void pa_operation_cancel(pa_operation *o);
/** Return the current status of the operation */
-pa_operation_state_t pa_operation_get_state(pa_operation *o);
+pa_operation_state_t pa_operation_get_state(const pa_operation *o);
/** Set the callback function that is called when the operation state
* changes. Usually this is not necessary, since the functions that