operation: pa_operation_get_state: constify

This commit is contained in:
Lyndon Brown 2018-05-27 06:14:29 +01:00 committed by Arun Raghavan
parent 9b5077c468
commit a24be6cc13
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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