Function flipper0::ffi::cli_add_command
source · pub unsafe extern "C" fn cli_add_command(
cli: *mut Cli,
name: *const i8,
flags: CliCommandFlag,
callback: Option<unsafe extern "C" fn(*mut Cli, *mut FuriString, *mut c_void)>,
context: *mut c_void
)
Expand description
Add cli command Registers you command callback
@param cli pointer to cli instance @param name command name @param flags CliCommandFlag @param callback callback function @param context pointer to whatever we need to pass to callback