mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
operation: pa_operation_get_state: constify
This commit is contained in:
parent
9b5077c468
commit
a24be6cc13
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue