Type Alias panda_sys::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)>