diff options
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 |