summaryrefslogtreecommitdiff
path: root/src/helper/command.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-05-07 12:15:19 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-05-07 12:15:19 +0000
commita197e759ffcb047a383adf686966f68934fef206 (patch)
treec411265e8592850792784a3deb27be34a2f3bf8b /src/helper/command.h
parent2b9dbccfcf17d9915a066b558c7066f6b96088e0 (diff)
downloadopenocd+libswd-a197e759ffcb047a383adf686966f68934fef206.tar.gz
openocd+libswd-a197e759ffcb047a383adf686966f68934fef206.tar.bz2
openocd+libswd-a197e759ffcb047a383adf686966f68934fef206.tar.xz
openocd+libswd-a197e759ffcb047a383adf686966f68934fef206.zip
Edgar Grimberg plugged a leak found w/Valgrind.
git-svn-id: svn://svn.berlios.de/openocd/trunk@646 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/command.h')
-rw-r--r--src/helper/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helper/command.h b/src/helper/command.h
index 3586017d..ed6a96a7 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -66,6 +66,7 @@ typedef struct command_s
extern command_t* register_command(command_context_t *context, command_t *parent, char *name, int (*handler)(struct command_context_s *context, char* name, char** args, int argc), enum command_mode mode, char *help);
extern int unregister_command(command_context_t *context, char *name);
+extern int unregister_all_commands(command_context_t *context);
extern void command_set_output_handler(command_context_t* context, int (*output_handler)(struct command_context_s *context, char* line), void *priv);
extern command_context_t* copy_command_context(command_context_t* context);
extern command_context_t* command_init();