]> git.sur5r.net Git - openocd/commit
add struct command_registration
authorZachary T Welch <zw@superlucidity.net>
Fri, 20 Nov 2009 19:23:34 +0000 (11:23 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 25 Nov 2009 05:37:29 +0000 (21:37 -0800)
commit69076057dde9f4336b54fb4da677da8fe5da66bd
tree839cc6881d7a8ed26c82635b640ebc9fe93c98ad
parent833e7f5248778bcb31b4db1a1b91160995415203
add struct command_registration

Add a structure to encapsulate command registration information, rather
than passing them all as parameters.  Enables further API changes that
require additional required or optional parameters.

Updates the register_command API and COMMAND_REGISTER macro to use it,
along with their documentation.
src/helper/command.c
src/helper/command.h