diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-02-20 17:09:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-02-20 17:09:39 +0000 |
commit | 98cb6aa4a30a993ddf2c15f0a03cb4d94383d4d9 (patch) | |
tree | f55eec2774433bba2fa065260f60ced629a17b43 /src/polyp/subscribe.h | |
parent | 71e063a69533fedc283c55eed735332e5b00713e (diff) |
* a lot of doxygen updates
* s/pa_operation_callback/pa_operation_callback_t/g
* add more typedefs for function prototypes
* add API to query the channel map used by a pa_stream
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@530 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp/subscribe.h')
-rw-r--r-- | src/polyp/subscribe.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/polyp/subscribe.h b/src/polyp/subscribe.h index f1f0642d..5301739a 100644 --- a/src/polyp/subscribe.h +++ b/src/polyp/subscribe.h @@ -36,11 +36,14 @@ PA_C_DECL_BEGIN +/** Subscription event callback prototype */ +typedef void (*pa_context_subscribe_cb_t)(pa_context *c, pa_subscription_event_type_t t, uint32_t idx, void *userdata); + /** Enable event notification */ -pa_operation* pa_context_subscribe(pa_context *c, pa_subscription_mask_t m, void (*cb)(pa_context *c, int success, void *userdata), void *userdata); +pa_operation* pa_context_subscribe(pa_context *c, pa_subscription_mask_t m, pa_context_success_cb_t cb, void *userdata); /** Set the context specific call back function that is called whenever the state of the daemon changes */ -void pa_context_set_subscribe_callback(pa_context *c, void (*cb)(pa_context *c, pa_subscription_event_type_t t, uint32_t index, void *userdata), void *userdata); +void pa_context_set_subscribe_callback(pa_context *c, pa_context_subscribe_cb_t cb, void *userdata); PA_C_DECL_END |