diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-10 19:00:01 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 10:51:45 -0800 |
commit | ddb6138ed428f666064d26bb08036de3afe44bc8 (patch) | |
tree | e127983a43d444b4893fc549ea6cb150465448e6 /src/helper/command.c | |
parent | 3f9fd4e2a6ab7b3ce3819c385c34cf6f4630763c (diff) | |
download | riscv-openocd-ddb6138ed428f666064d26bb08036de3afe44bc8.zip riscv-openocd-ddb6138ed428f666064d26bb08036de3afe44bc8.tar.gz riscv-openocd-ddb6138ed428f666064d26bb08036de3afe44bc8.tar.bz2 |
add command_handler_t type
This patch adds new typedefs for command handler callback functions.
Users of this type signature were updated to use these new types.
It uses the new __COMMAND_HANDLER macro to prevent duplication.
Diffstat (limited to 'src/helper/command.c')
-rw-r--r-- | src/helper/command.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 603da82..e467be0 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -225,9 +225,7 @@ static void command_add_child(struct command_s **head, struct command_s *c) } 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), + command_t *parent, char *name, command_handler_t handler, enum command_mode mode, char *help) { if (!context || !name) |