summaryrefslogtreecommitdiff
path: root/src/jtag/interface.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-20 22:01:59 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:33 -0800
commit8d46720cda288f498787a706bb2518e6f852b9f1 (patch)
treeeab7c9b46857d882666e9e97127194a2c14fd6cc /src/jtag/interface.h
parentfc2d9f87615b7a5562cb9cd58fb95953e5d89818 (diff)
downloadopenocd_libswd-8d46720cda288f498787a706bb2518e6f852b9f1.tar.gz
openocd_libswd-8d46720cda288f498787a706bb2518e6f852b9f1.tar.bz2
openocd_libswd-8d46720cda288f498787a706bb2518e6f852b9f1.tar.xz
openocd_libswd-8d46720cda288f498787a706bb2518e6f852b9f1.zip
remove register_callbacks from jtag interface
Changes the jtag_interface->register_callbacks field to a list of commands to be registered. Changes callback to invocation of register_commands() with that command registration list. Removes all JTAG interface driver register_command callback functions, which the previous commits had converted into identical calls.
Diffstat (limited to 'src/jtag/interface.h')
-rw-r--r--src/jtag/interface.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jtag/interface.h b/src/jtag/interface.h
index 05e4048b..d55782ad 100644
--- a/src/jtag/interface.h
+++ b/src/jtag/interface.h
@@ -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