X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fjtag%2Finterface.h;h=a264d69f274ba61c61fdad96ec2471952421b24a;hb=b3bf1d12b2fdfba1c1cbee3e1afbfbb27cbd1a26;hp=05e4048b1d3f06f86359745e902392013ee060e2;hpb=98723c4ecdbe06f90c66f3abec27b792c3b38e34;p=fw%2Fopenocd diff --git a/src/jtag/interface.h b/src/jtag/interface.h index 05e4048b1..a264d69f2 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -26,7 +26,7 @@ #ifndef OPENOCD_JTAG_INTERFACE_H #define OPENOCD_JTAG_INTERFACE_H -#include "jtag.h" +#include /* @file * The "Cable Helper API" is what the cable drivers can use to help @@ -204,10 +204,8 @@ struct jtag_interface { /** * The interface driver may register additional commands to expose * additional features not covered by the standard command set. - * @param cmd_ctx The context in which commands should be registered. - * @returns ERROR_OK on success, or an error code on failure. */ - int (*register_commands)(struct command_context* cmd_ctx); + const struct command_registration *commands; /** * Interface driver must initalize any resources and connect to a