Struct libpulse_binding::mainloop::api::MainloopApi[][src]

#[repr(C)]
pub struct MainloopApi { pub userdata: *mut c_void, pub io_new: Option<extern "C" fn(a: *const MainloopApi, fd: i32, events: IoEventFlagSet, cb: Option<IoEventCb>, userdata: *mut c_void) -> *mut IoEventInternal>, pub io_enable: Option<extern "C" fn(e: *mut IoEventInternal, events: IoEventFlagSet)>, pub io_free: Option<extern "C" fn(e: *mut IoEventInternal)>, pub io_set_destroy: Option<extern "C" fn(e: *mut IoEventInternal, cb: Option<IoEventDestroyCb>)>, pub time_new: Option<extern "C" fn(a: *const MainloopApi, tv: *const timeval, cb: Option<TimeEventCb>, userdata: *mut c_void) -> *mut TimeEventInternal>, pub time_restart: Option<extern "C" fn(e: *mut TimeEventInternal, tv: *const timeval)>, pub time_free: Option<extern "C" fn(e: *mut TimeEventInternal)>, pub time_set_destroy: Option<extern "C" fn(e: *mut TimeEventInternal, cb: Option<TimeEventDestroyCb>)>, pub defer_new: Option<extern "C" fn(a: *const MainloopApi, cb: Option<DeferEventCb>, userdata: *mut c_void) -> *mut DeferEventInternal>, pub defer_enable: Option<extern "C" fn(e: *mut DeferEventInternal, b: i32)>, pub defer_free: Option<extern "C" fn(e: *mut DeferEventInternal)>, pub defer_set_destroy: Option<extern "C" fn(e: *mut DeferEventInternal, cb: Option<DeferEventDestroyCb>)>, pub quit: Option<extern "C" fn(a: *const MainloopApi, retval: RetvalActual)>, }

An abstract mainloop API vtable

Fields

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

Create a new IO event source object

Enable or disable IO events on this object

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

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

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

Free a deferred timer event source object

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.

Exit the main loop and return the specified retval

Trait Implementations

impl<'a> From<*const ApiInternal> for &'a MainloopApi
[src]

Performs the conversion.

impl<'a> From<&'a MainloopApi> for *const ApiInternal
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for MainloopApi

impl !Sync for MainloopApi