Type Alias flipperzero_sys::FuriThreadStateCallback
source · pub type FuriThreadStateCallback = Option<unsafe extern "C" fn(state: FuriThreadState, context: *mut c_void)>;Expand description
State change callback function pointer type.
The function to be used as a state callback MUST follow this signature.
§Arguments
state(direction in) - identifier of the state the thread has transitioned tocontext(direction in, out) - pointer to a user-specified object
Aliased Type§
enum FuriThreadStateCallback {
None,
Some(unsafe extern "C" fn(_: u8, _: *mut c_void)),
}