]> git.sur5r.net Git - openocd/blobdiff - src/target/target_type.h
remove target_type register_command callback
[openocd] / src / target / target_type.h
index aa87a74495a2d2fa5eb3a872a3f4c43461bf676a..9a0709d859e33837d6dbb6cef508a547281596f7 100644 (file)
@@ -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);