Connection contexts for asynchronous communication with a server.
void(* pa_context_success_cb_t)(pa_context *c, int success, void *userdata)
A generic callback for operation completion.
Definition: context.h:160
struct pa_context pa_context
An opaque connection context to a daemon.
Definition: context.h:154
struct pa_operation pa_operation
An asynchronous operation object.
Definition: operation.h:33
void pa_context_set_subscribe_callback(pa_context *c, pa_context_subscribe_cb_t cb, void *userdata)
Set the context specific call back function that is called whenever the state of the daemon changes.
pa_operation * pa_context_subscribe(pa_context *c, pa_subscription_mask_t m, pa_context_success_cb_t cb, void *userdata)
Enable event notification.
void(* pa_context_subscribe_cb_t)(pa_context *c, pa_subscription_event_type_t t, uint32_t idx, void *userdata)
Subscription event callback prototype.
Definition: subscribe.h:73