mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
sink, source: rename set_state() to set_state_in_main_thread()
There will be a new callback named set_state_in_io_thread(). It seems like a good idea to have a similar name for the main thread variant.
This commit is contained in:
parent
f6fe411b32
commit
0fad369ceb
17 changed files with 56 additions and 54 deletions
|
|
@ -132,10 +132,11 @@ struct pa_sink {
|
|||
* s->state and s->suspend_cause haven't been updated yet when this is
|
||||
* called, so the callback can get the old state through those variables.
|
||||
*
|
||||
* If set_state() is successful, the IO thread will be notified with the
|
||||
* SET_STATE message. The message handler is allowed to fail, in which
|
||||
* case the old state is restored, and set_state() is called again. */
|
||||
int (*set_state)(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
|
||||
* If set_state_in_main_thread() is successful, the IO thread will be
|
||||
* notified with the SET_STATE message. The message handler is allowed to
|
||||
* fail, in which case the old state is restored, and
|
||||
* set_state_in_main_thread() is called again. */
|
||||
int (*set_state_in_main_thread)(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
|
||||
|
||||
/* Sink drivers that support hardware volume may set this
|
||||
* callback. This is called when the current volume needs to be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue