mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -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
|
|
@ -48,6 +48,8 @@ struct pa_client {
|
|||
void *userdata;
|
||||
|
||||
void (*kill)(pa_client *c);
|
||||
|
||||
void (*send_event)(pa_client *c, const char *name, pa_proplist *data);
|
||||
};
|
||||
|
||||
typedef struct pa_client_new_data {
|
||||
|
|
@ -73,4 +75,12 @@ void pa_client_set_name(pa_client *c, const char *name);
|
|||
|
||||
void pa_client_update_proplist(pa_client *c, pa_update_mode_t mode, pa_proplist *p);
|
||||
|
||||
void pa_client_send_event(pa_client *c, const char *event, pa_proplist *data);
|
||||
|
||||
typedef struct pa_client_send_event_hook_data {
|
||||
pa_client *client;
|
||||
const char *event;
|
||||
pa_proplist *data;
|
||||
} pa_client_send_event_hook_data;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue