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 CliShellExpand 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. SeeCliCommandExternalConfig. May be NULL if support for external commands is not required.
§Returns
Shell instance