diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-17 09:15:09 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-18 07:22:22 -0800 |
commit | 5e229bbf87fbb5a809553526edf0186dd3dd5cf8 (patch) | |
tree | 4abbfa0e0deeccbd2ae0052df247d8743548496d /src/helper/command.h | |
parent | cb7dbc1af41068f826246beb53870c01d8973bb8 (diff) | |
download | riscv-openocd-5e229bbf87fbb5a809553526edf0186dd3dd5cf8.zip riscv-openocd-5e229bbf87fbb5a809553526edf0186dd3dd5cf8.tar.gz riscv-openocd-5e229bbf87fbb5a809553526edf0186dd3dd5cf8.tar.bz2 |
pass startup_tcl to command_init
Removes external linkage from helper module, making the startup
code a parameter to a new command context's initialization routine.
Diffstat (limited to 'src/helper/command.h')
-rw-r--r-- | src/helper/command.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helper/command.h b/src/helper/command.h index 62231fc..05088b5 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -190,7 +190,10 @@ struct command_context* copy_command_context(struct command_context* context); int command_context_mode(struct command_context *context, enum command_mode mode); -struct command_context* command_init(void); +/** + * Creates a new command context using the startup TCL provided. + */ +struct command_context* command_init(const char *startup_tcl); int command_done(struct command_context *context); void command_print(struct command_context *context, const char *format, ...) |