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.
pa_time_event *(* rtclock_time_new )(pa_mainloop_api *a, pa_usec_t time, pa_rtclock_event_cb_t cb, void *userdata)
 Create a new timer event source object for the specified monotonic time.
void(* rtclock_time_restart )(pa_time_event *e, pa_usec_t time)
 Restart a running or expired timer event source with a new monotonic time.


Detailed Description

An abstract mainloop API vtable.
Examples:

pacat.c, and paplay.c.


Field Documentation

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

Create a new IO event source object.

Examples:
pacat.c.

Enable or disable IO events on this object.

Examples:
pacat.c.

Free a IO event source object.

Examples:
pacat.c.

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

Use this to free the userdata argument if required

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.

Free a deferred timer event source object.

Examples:
pacat.c.

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

Use this to free the userdata argument if required

Create a new deferred event source object.

Enable or disable a deferred event source temporarily.

Free a 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

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

Exit the main loop and return the specfied retval.

Examples:
pacat.c, and paplay.c.

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

Since:
0.9.16
Examples:
pacat.c.

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

Since:
0.9.16
Examples:
pacat.c.


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

Generated on Mon Jun 14 16:31:37 2010 for PulseAudio by  doxygen 1.5.6