Main loop abstraction layer.
int pa_signal_init(pa_mainloop_api *api)
Initialize the UNIX signal subsystem and bind it to the specified main loop.
void pa_signal_set_destroy(pa_signal_event *e, pa_signal_destroy_cb_t callback)
Set a function that is called when the signal event source is destroyed.
void(* pa_signal_destroy_cb_t)(pa_mainloop_api *api, pa_signal_event *e, void *userdata)
Destroy callback prototype for signal events.
Definition: mainloop-signal.h:45
void(* pa_signal_cb_t)(pa_mainloop_api *api, pa_signal_event *e, int sig, void *userdata)
Callback prototype for signal events.
Definition: mainloop-signal.h:42
struct pa_signal_event pa_signal_event
An opaque UNIX signal event source object.
Definition: mainloop-signal.h:39
void pa_signal_free(pa_signal_event *e)
Free a UNIX signal event source object.
pa_signal_event * pa_signal_new(int sig, pa_signal_cb_t callback, void *userdata)
Create a new UNIX signal event source object.
void pa_signal_done(void)
Cleanup the signal subsystem.
An abstract mainloop API vtable.
Definition: mainloop-api.h:87