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:
Zachary T Welch
2009-11-23 08:24:02 -08:00
parent 66ee303456
commit f74e2e033a
5 changed files with 17 additions and 31 deletions

View File

@@ -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);