mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bccb2873bd
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> |
||
---|---|---|
.. | ||
_templates | ||
api-guides | ||
api-reference | ||
contribute | ||
get-started | ||
hw-reference | ||
libraries-and-frameworks | ||
migration-guides | ||
security | ||
third-party-tools | ||
404.rst | ||
about.rst | ||
conf.py | ||
COPYRIGHT.rst | ||
index.rst | ||
languages.rst | ||
resources.rst | ||
versions.rst |