]> git.sur5r.net Git - openocd/commit
add struct command_invocation for COMMAND_HANDLER
authorZachary T Welch <zw@superlucidity.net>
Sun, 15 Nov 2009 12:21:17 +0000 (04:21 -0800)
committerZachary T Welch <zw@superlucidity.net>
Tue, 17 Nov 2009 19:40:21 +0000 (11:40 -0800)
commitbe084414ba00a4ad641af04c3c6858312dd1b336
tree6b32f73b845975eb0af7e8d4634aa5a483a1432d
parent2861877b32a7a2f4022a1c3d9b66c9b4879878ac
add struct command_invocation for COMMAND_HANDLER

Adds the command_invocation structure to encapsulate parameters for
all COMMAND_HANDLER routines.  Rather than passing several arguments
to each successive subroutine, a single pointer may be passed around.

Changes the CMD_* macros to reference the new fields.

Updates run_command to create an instance and pass it to the handler.
src/helper/command.c
src/helper/command.h