]> git.sur5r.net Git - openocd/blobdiff - src/helper/command.h
Edgar Grimberg plugged a leak found w/Valgrind.
[openocd] / src / helper / command.h
index 3586017deee048354c973f96d59de3c038d25aa8..ed6a96a70d259f95b0985e5d71bb784e75ac6896 100644 (file)
@@ -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();