cli_shell_alloc

Function cli_shell_alloc 

Source
pub unsafe extern "C" fn cli_shell_alloc(
    motd: CliShellMotd,
    context: *mut c_void,
    pipe: *mut PipeSide,
    registry: *mut CliRegistry,
    ext_config: *const CliCommandExternalConfig,
) -> *mut CliShell
Expand description

Allocates a shell

§Arguments

  • [in] - motd Message of the Day callback
  • [in] - context Callback context
  • [in] - pipe Pipe side to be used by the shell
  • [in] - registry Command registry
  • [in] - ext_config External command configuration. See CliCommandExternalConfig. May be NULL if support for external commands is not required.

§Returns

Shell instance