summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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