flipperzero_sys

Type Alias FuriThreadStdoutWriteCallback

Source
pub type FuriThreadStdoutWriteCallback = Option<unsafe extern "C" fn(data: *const c_char, size: usize)>;
Expand description

Standard output callback function pointer type.

The function to be used as a standard output callback MUST follow this signature.

The handler MUST process ALL of the provided data before returning.

§Arguments

  • data (direction in) - pointer to the data to be written to the standard out
  • size (direction in) - size of the data in bytes

Aliased Type§

enum FuriThreadStdoutWriteCallback {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: usize))

Some value of type T.