Type Alias FuriThreadCallback
Source pub type FuriThreadCallback = Option<unsafe extern "C" fn(context: *mut c_void) -> i32>;
Expand description
Thread callback function pointer type.
The function to be used as a thread callback MUST follow this signature.
§Arguments
context (direction in, out) - pointer to a user-specified object
§Returns
value to be used as the thread return code
pub enum FuriThreadCallback {
None,
Some(unsafe extern "C" fn(*mut c_void) -> i32),
}