diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-02-12 03:18:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-12 03:18:05 +0100 |
commit | 823431e44732a0824658c82de29aaa92f8f39f79 (patch) | |
tree | bdad5ae9f4e0f47221905ccedf0c192c09c86aaf /src/pulsecore/client.h | |
parent | 4bd9737725b85d90a7cf12b82528c2de70a7fbfe (diff) |
allow sending meta/policy events to clients
Diffstat (limited to 'src/pulsecore/client.h')
-rw-r--r-- | src/pulsecore/client.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pulsecore/client.h b/src/pulsecore/client.h index 8ac80dd9..845a8bab 100644 --- a/src/pulsecore/client.h +++ b/src/pulsecore/client.h @@ -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 |