Data Fields

pa_mainloop_api Struct Reference

An abstract mainloop API vtable. More...

Data Fields

void * userdata
 A pointer to some private, arbitrary data of the main loop implementation.
pa_io_event *(* io_new )(pa_mainloop_api *a, int fd, pa_io_event_flags_t events, pa_io_event_cb_t cb, void *userdata)
 Create a new IO event source object.
void(* io_enable )(pa_io_event *e, pa_io_event_flags_t events)
 Enable or disable IO events on this object.
void(* io_free )(pa_io_event *e)
 Free a IO event source object.
void(* io_set_destroy )(pa_io_event *e, pa_io_event_destroy_cb_t cb)
 Set a function that is called when the IO event source is destroyed.
pa_time_event *(* time_new )(pa_mainloop_api *a, const struct timeval *tv, pa_time_event_cb_t cb, void *userdata)
 Create a new timer event source object for the specified Unix time.
void(* time_restart )(pa_time_event *e, const struct timeval *tv)
 Restart a running or expired timer event source with a new Unix time.
void(* time_free )(pa_time_event *e)
 Free a deferred timer event source object.
void(* time_set_destroy )(pa_time_event *e, pa_time_event_destroy_cb_t cb)
 Set a function that is called when the timer event source is destroyed.
pa_defer_event *(* defer_new )(pa_mainloop_api *a, pa_defer_event_cb_t cb, void *userdata)
 Create a new deferred event source object.
void(* defer_enable )(pa_defer_event *e, int b)
 Enable or disable a deferred event source temporarily.
void(* defer_free )(pa_defer_event *e)
 Free a deferred event source object.
void(* defer_set_destroy )(pa_defer_event *e, pa_defer_event_destroy_cb_t cb)
 Set a function that is called when the deferred event source is destroyed.
void(* quit )(pa_mainloop_api *a, int retval)
 Exit the main loop and return the specfied retval.

Detailed Description

An abstract mainloop API vtable.


Field Documentation

Enable or disable a deferred event source temporarily.

Free a deferred event source object.

Create a new deferred event source object.

Set a function that is called when the deferred event source is destroyed.

Use this to free the userdata argument if required

Enable or disable IO events on this object.

Free a IO event source object.

Create a new IO event source object.

Set a function that is called when the IO event source is destroyed.

Use this to free the userdata argument if required

void(* pa_mainloop_api::quit)(pa_mainloop_api *a, int retval)

Exit the main loop and return the specfied retval.

Free a deferred timer event source object.

Create a new timer event source object for the specified Unix time.

void(* pa_mainloop_api::time_restart)(pa_time_event *e, const struct timeval *tv)

Restart a running or expired timer event source with a new Unix time.

Set a function that is called when the timer event source is destroyed.

Use this to free the userdata argument if required

A pointer to some private, arbitrary data of the main loop implementation.


The documentation for this struct was generated from the following file: