pulse.mainloopapi

Undocumented in source.

Members

Aliases

pa_defer_event_cb_t
alias pa_defer_event_cb_t = void function(pa_mainloop_api* a, pa_defer_event* e, void* userdata)

A defer event callback prototype \since 0.9.3

pa_defer_event_destroy_cb_t
alias pa_defer_event_destroy_cb_t = void function(pa_mainloop_api* a, pa_defer_event* e, void* userdata)

A defer event destroy callback prototype \since 0.9.3

pa_io_event_cb_t
alias pa_io_event_cb_t = void function(pa_mainloop_api* ea, pa_io_event* e, int fd, pa_io_event_flags_t events, void* userdata)

An IO event callback prototype \since 0.9.3

pa_io_event_destroy_cb_t
alias pa_io_event_destroy_cb_t = void function(pa_mainloop_api* a, pa_io_event* e, void* userdata)

A IO event destroy callback prototype \since 0.9.3

pa_io_event_flags_t
alias pa_io_event_flags_t = pa_io_event_flags
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pa_time_event_cb_t
alias pa_time_event_cb_t = void function(pa_mainloop_api* a, pa_time_event* e, const(timeval)* tv, void* userdata)

A time event callback prototype \since 0.9.3

pa_time_event_destroy_cb_t
alias pa_time_event_destroy_cb_t = void function(pa_mainloop_api* a, pa_time_event* e, void* userdata)

A time event destroy callback prototype \since 0.9.3

Enums

pa_io_event_flags
enum pa_io_event_flags

A bitmask for IO events

Functions

pa_mainloop_api_once
void pa_mainloop_api_once(pa_mainloop_api* m, void function(pa_mainloop_api* m, void* userdata) callback, void* userdata)

Run the specified callback function once from the main loop using an * anonymous defer event. If the mainloop runs in a different thread, you need * to follow the mainloop implementation's rules regarding how to safely create * defer events. In particular, if you're using \ref pa_threaded_mainloop, you * must lock the mainloop before calling this function.

Structs

pa_defer_event
struct pa_defer_event

An opaque deferred event source object. Events of this type are triggered once in every main loop iteration

pa_io_event
struct pa_io_event

An opaque IO event source object

pa_mainloop_api
struct pa_mainloop_api

An abstract mainloop API vtable

pa_time_event
struct pa_time_event

An opaque timer event source object

Meta