Type Alias flipperzero_sys::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

Aliased Type§

enum FuriThreadCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

Some value of type T.