summaryrefslogtreecommitdiff
path: root/src/target/target_type.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-23 08:17:01 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:36 -0800
commit66ee303456910f684244a20a0ac2e958d40b78cb (patch)
tree3a5f06b0ee9e3978ebc9d836aac622b752e251ad /src/target/target_type.h
parent144e3678bd2d518388b6c2d7f3d2a912a9ac2abd (diff)
downloadopenocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.gz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.bz2
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.xz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.zip
remove target_type register_command callback
Uses chaining of command_registration structures to eliminate all target_type register_callback routines. Exports the command_handler registration arrays for those target types that are used by others.
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r--src/target/target_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h
index aa87a744..9a0709d8 100644
--- a/src/target/target_type.h
+++ b/src/target/target_type.h
@@ -148,7 +148,7 @@ struct target_type
*/
int (*run_algorithm)(struct target *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_param, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info);
- int (*register_commands)(struct command_context *cmd_ctx);
+ const struct command_registration *commands;
/* called when target is created */
int (*target_create)(struct target *target, Jim_Interp *interp);