flipperzero_sys

Type Alias 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 recipient
  • arg (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),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: u32, _: *mut c_void, _: *mut c_void) -> bool)

Some value of type T.