mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
allow sending meta/policy events to clients
This commit is contained in:
parent
4bd9737725
commit
823431e447
17 changed files with 369 additions and 2 deletions
|
|
@ -143,6 +143,10 @@ struct pa_source_output {
|
|||
* will not be allowed */
|
||||
pa_bool_t (*may_move_to) (pa_source_output *o, pa_source *s); /* may be NULL */
|
||||
|
||||
/* If non-NULL this function is used to dispatch asynchronous
|
||||
* control events. */
|
||||
void (*send_event)(pa_source_output *o, const char *event, pa_proplist* data);
|
||||
|
||||
struct {
|
||||
pa_source_output_state_t state;
|
||||
|
||||
|
|
@ -177,6 +181,12 @@ enum {
|
|||
PA_SOURCE_OUTPUT_MESSAGE_MAX
|
||||
};
|
||||
|
||||
typedef struct pa_source_output_send_event_hook_data {
|
||||
pa_source_output *source_output;
|
||||
const char *event;
|
||||
pa_proplist *data;
|
||||
} pa_source_output_send_event_hook_data;
|
||||
|
||||
typedef struct pa_source_output_new_data {
|
||||
pa_proplist *proplist;
|
||||
pa_sink_input *direct_on_input;
|
||||
|
|
@ -233,6 +243,8 @@ void pa_source_output_update_proplist(pa_source_output *o, pa_update_mode_t mode
|
|||
|
||||
pa_resample_method_t pa_source_output_get_resample_method(pa_source_output *o);
|
||||
|
||||
void pa_source_output_send_event(pa_source_output *o, const char *name, pa_proplist *data);
|
||||
|
||||
pa_bool_t pa_source_output_may_move(pa_source_output *o);
|
||||
pa_bool_t pa_source_output_may_move_to(pa_source_output *o, pa_source *dest);
|
||||
int pa_source_output_move_to(pa_source_output *o, pa_source *dest, pa_bool_t save);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue