Type Alias flipperzero_sys::FuriThreadSignalCallback
source · pub type FuriThreadSignalCallback = Option<unsafe extern "C" fn(signal: u32, arg: *mut c_void, context: *mut c_void) -> bool>;Expand description
Signal handler callback function pointer type.
The function to be used as a signal handler callback MUS follow this signature.
§Arguments
signal(direction in) - value of the signal to be handled by the recipientarg(direction in, out) - optional argument (can be of any value, including NULL)context(direction in, out) - pointer to a user-specified object
§Returns
true if the signal was handled, false otherwise
Aliased Type§
enum FuriThreadSignalCallback {
None,
Some(unsafe extern "C" fn(_: u32, _: *mut c_void, _: *mut c_void) -> bool),
}