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. |
An abstract mainloop API vtable.
void(* pa_mainloop_api::defer_enable)(pa_defer_event *e, int b) |
Enable or disable a deferred event source temporarily.
void(* pa_mainloop_api::defer_free)(pa_defer_event *e) |
Free a deferred event source object.
pa_defer_event*(* pa_mainloop_api::defer_new)(pa_mainloop_api *a, pa_defer_event_cb_t cb, void *userdata) |
Create a new deferred event source object.
void(* pa_mainloop_api::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.
Use this to free the userdata argument if required
void(* pa_mainloop_api::io_enable)(pa_io_event *e, pa_io_event_flags_t events) |
Enable or disable IO events on this object.
void(* pa_mainloop_api::io_free)(pa_io_event *e) |
Free a IO event source object.
pa_io_event*(* pa_mainloop_api::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(* pa_mainloop_api::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.
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.
void(* pa_mainloop_api::time_free)(pa_time_event *e) |
Free a deferred timer event source object.
pa_time_event*(* pa_mainloop_api::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(* 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.
void(* pa_mainloop_api::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.
Use this to free the userdata argument if required
A pointer to some private, arbitrary data of the main loop implementation.
Several copyright owners GNU Lesser General Public License v2.1 |
MeeGo 1.2 Harmattan API
|