-apitrace_help_command(int argc, char *argv[], int first_command_arg);
-
-static Command commands[] = {
- { "dump",
- APITRACE_DUMP_SYNOPSIS,
- apitrace_dump_usage,
- apitrace_dump_command },
- { "help",
- APITRACE_HELP_SYNOPSIS,
- apitrace_help_usage,
- apitrace_help_command }
+do_help_command(int argc, char *argv[]);
+
+const Command help_command = {
+ "help",
+ help_synopsis,
+ help_usage,
+ do_help_command
+};
+
+static const Command * commands[] = {
+ &diff_command,
+ &diff_state_command,
+ &diff_images_command,
+ &dump_command,
+ &dump_images_command,
+ &pickle_command,
+ &repack_command,
+ &retrace_command,
+ &trace_command,
+ &trim_command,
+ &help_command
+};
+
+/* Aliases provide a mechanism to allow compatibility with old command
+ * names (such as "retrace") for current commands (such as the replay
+ * command). */
+typedef struct {
+ const char *name;
+ const Command *command;
+} Alias;
+
+static const Alias aliases[] = {
+ { "retrace", &retrace_command }