Type Alias GSourceCallbackFuncs

Source
pub type GSourceCallbackFuncs = _GSourceCallbackFuncs;
Expand description

GSourceCallbackFuncs: @ref: Called when a reference is added to the callback object @unref: Called when a reference to the callback object is dropped @get: Called to extract the callback function and data from the callback object.

The GSourceCallbackFuncs struct contains functions for managing callback objects.

Aliased Type§

struct GSourceCallbackFuncs {
    pub ref_: Option<unsafe extern "C" fn(*mut c_void)>,
    pub unref: Option<unsafe extern "C" fn(*mut c_void)>,
    pub get: Option<unsafe extern "C" fn(*mut c_void, *mut _GSource, *mut Option<unsafe extern "C" fn(*mut c_void) -> i32>, *mut *mut c_void)>,
}

Fields§

§ref_: Option<unsafe extern "C" fn(*mut c_void)>§unref: Option<unsafe extern "C" fn(*mut c_void)>§get: Option<unsafe extern "C" fn(*mut c_void, *mut _GSource, *mut Option<unsafe extern "C" fn(*mut c_void) -> i32>, *mut *mut c_void)>