BSB Developer Docs
Loading...
Searching...
No Matches
cli_shell.h
1#pragma once
2
3#include <furi.h>
4#include <containers/pipe.h>
5#include "../cli_registry.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#define CLI_SHELL_STACK_SIZE (4 * 1024U)
12
13typedef struct CliShell CliShell;
14
19typedef void (*CliShellMotd)(void* context);
20
34CliShell* cli_shell_alloc(
35 CliShellMotd motd,
36 void* context,
37 PipeSide* pipe,
38 CliRegistry* registry,
39 const CliCommandExternalConfig* ext_config);
40
46void cli_shell_free(CliShell* shell);
47
55void cli_shell_start(CliShell* shell);
56
64void cli_shell_join(CliShell* shell);
65
71void cli_shell_set_prompt(CliShell* shell, const char* prompt);
72
78void cli_shell_free_pipe_on_exit(CliShell* shell);
79
86void cli_shell_notification_print(CliShell* shell, FuriString* string);
87
88#ifdef __cplusplus
89}
90#endif
API for registering commands with a CLI shell.
Pipe convenience module.
Configuration for locating external commands.
Definition cli_command.h:29
Definition cli_registry.c:8
Definition cli_shell.c:81
There are two PipeSides per pipe.
Definition pipe.c:22