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/pulse/context.h | |
parent | 4bd9737725b85d90a7cf12b82528c2de70a7fbfe (diff) | |
download | pulseaudio-823431e44732a0824658c82de29aaa92f8f39f79.tar.gz |
allow sending meta/policy events to clients
Diffstat (limited to 'src/pulse/context.h')
-rw-r--r-- | src/pulse/context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pulse/context.h b/src/pulse/context.h index dfb7e4a10..2ae4c0135 100644 --- a/src/pulse/context.h +++ b/src/pulse/context.h @@ -164,6 +164,13 @@ typedef void (*pa_context_notify_cb_t)(pa_context *c, void *userdata); /** A generic callback for operation completion */ typedef void (*pa_context_success_cb_t) (pa_context *c, int success, void *userdata); +/** A callback for asynchronous meta/policy event messages. The set + * of defined events can be extended at any time. Also, server modules + * may introduce additional message types so make sure that your + * callback function ignores messages it doesn't know. \since + * 0.9.15 */ +typedef void (*pa_context_event_cb_t)(pa_context *c, const char *name, pa_proplist *p, void *userdata); + /** Instantiate a new connection context with an abstract mainloop API * and an application name. It is recommended to use pa_context_new_with_proplist() * instead and specify some initial properties.*/ @@ -183,6 +190,10 @@ pa_context* pa_context_ref(pa_context *c); /** Set a callback function that is called whenever the context status changes */ void pa_context_set_state_callback(pa_context *c, pa_context_notify_cb_t cb, void *userdata); +/** Set a callback function that is called whenver a meta/policy + * control event is received. \since 0.9.15 */ +void pa_context_set_event_callback(pa_context *p, pa_context_event_cb_t cb, void *userdata); + /** Return the error number of the last failed operation */ int pa_context_errno(pa_context *c); |