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