flipperzero_sys

Type Alias CliCallback

Source
pub type CliCallback = Option<unsafe extern "C" fn(cli: *mut Cli, args: *mut FuriString, context: *mut c_void)>;
Expand description

Cli callback function pointer. Implement this interface and use add_cli_command

§Arguments

  • args - string with what was passed after command
  • context - pointer to whatever you gave us on cli_add_command

Aliased Type§

enum CliCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut Cli, _: *mut FuriString, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut Cli, _: *mut FuriString, _: *mut c_void))

Some value of type T.