remove register_commands from etm_capture_driver
Converts callback to an array of command_registration records. Moves oocd_trace driver definition to end of file to eliminate useless forward declaration.
This commit is contained in:
@@ -126,7 +126,7 @@ struct etm_context;
|
||||
struct etm_capture_driver
|
||||
{
|
||||
char *name;
|
||||
int (*register_commands)(struct command_context *cmd_ctx);
|
||||
const struct command_registration *commands;
|
||||
int (*init)(struct etm_context *etm_ctx);
|
||||
trace_status_t (*status)(struct etm_context *etm_ctx);
|
||||
int (*read_trace)(struct etm_context *etm_ctx);
|
||||
|
||||
Reference in New Issue
Block a user