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.
This commit is contained in:
Zachary T Welch
2009-11-17 09:15:09 -08:00
parent cb7dbc1af4
commit 5e229bbf87
5 changed files with 11 additions and 5 deletions

View File

@@ -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, ...)