add command_handler_t type
[fw/openocd] / src / helper / command.c
index 603da82f65c67cc80f82f5c615b36e05cd12ea61..e467be0b2d36ad54565fea51a2f0a5f6e19dd131 100644 (file)
@@ -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)