-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(console): add user context support
current implementation implicitly forces the developer to use global variables to enter its context during the command invocation. this implementation adds the option to add a user context with minimum API implication and no breakage. when running via repl the context is available in the repl config, when running directly from esp_context a new method is introduced. Fields added: esp_console_cmd_t::func_context - (*)(int argc, char **argv, void *context) esp_console_repl_config_t::context - void* Functions added: esp_err_t esp_console_run_context(const char *cmdline, void *context, int *cmd_ret) Signed-off-by: Alon Bar-Lev <[email protected]>
- Loading branch information
Showing
4 changed files
with
88 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters