esp-idf/components/console
Alon Bar-Lev bccb2873bd feat(console): add command user context support
Current implementation implicitly forces the developer to use global variables
to enter its context during the command invocation, this change enables each
module to register a context for command to find without the need to manage
global variables.

No API breakage.

Fields added:
   esp_console_cmd_t::func_w_context    - (*)(int argc, char **argv, void *context)

Functions added:
   esp_err_t esp_console_cmd_set_context(const char *cmd, void *context)

Usage:

   esp_console_cmd_register(&cmd));
   esp_console_cmd_set_context(cmd.command, (void *)"context"));

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2023-12-13 10:27:04 +08:00
..
argtable3 console: argtable3: upgrade to v3.2.2 2022-10-27 11:38:49 +02:00
linenoise fix(console): fix linenoise flushing in dumb mode 2023-10-09 12:13:02 +04:00
test_apps/console feat(console): add command user context support 2023-12-13 10:27:04 +08:00
CMakeLists.txt refactor(linux): excluded all non-Linux components from build 2023-10-16 17:06:54 +08:00
commands.c feat(console): add command user context support 2023-12-13 10:27:04 +08:00
esp_console_repl.c console: Fix building issue when serial JTAG is set 2023-04-27 15:28:23 +08:00
esp_console.h feat(console): add command user context support 2023-12-13 10:27:04 +08:00
split_argv.c console: update copyright notice 2021-05-17 03:41:32 +02:00