From 5e229bbf87fbb5a809553526edf0186dd3dd5cf8 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 17 Nov 2009 09:15:09 -0800 Subject: 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. --- src/helper/command.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/helper/command.h') diff --git a/src/helper/command.h b/src/helper/command.h index 62231fc8..05088b56 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, ...) -- cgit v1.2.3