esp-idf/docs/zh_CN/api-reference
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
..
bluetooth docs: update format issues for EN and CN files under api-reference/bluetooth folder 2023-08-22 16:02:33 +08:00
network docs(esp_wifi): Fix inconsistency in NAN documentation 2023-11-01 12:50:12 +05:30
peripherals docs: Sync up CN and EN versions for files under api-guides and api-references (Nov) 2023-12-11 14:53:05 +08:00
protocols docs: Sync up CN and EN versions for files under api-guides and api-references (Nov) 2023-12-11 14:53:05 +08:00
provisioning Merge branch 'docs/remove_wifi_related_documentation_for_esp32h2' into 'master' 2023-12-05 09:58:06 +08:00
storage Merge branch 'bugfix/fatfs_fatfsparse_relaxed' into 'master' 2023-12-08 23:48:25 +08:00
system feat(console): add command user context support 2023-12-13 10:27:04 +08:00
api-conventions.rst docs: update format issues for EN and CN files under api-reference/network folder and api-reference folder 2023-07-21 18:51:21 +08:00
error-codes.rst docs: Provide CN translation for api-reference/protocols/esp_tls.rst and update both EN and CN texts for api-reference/error-codes.rst 2023-07-06 18:50:44 +08:00
index.rst docs: Provide Chinese translation for bootloader_image_format, log, random, and internal-unstable.rst 2023-12-08 17:01:36 +08:00
kconfig.rst docs: Update Chinese translation for external-ram.rst and kconfig.rst 2023-10-18 16:02:04 +08:00
template.rst docs: Provide Chinese translation for template.rst and platformio.rst 2023-09-08 16:57:33 +08:00