aboutsummaryrefslogtreecommitdiffhomepage
path: root/input/cmd_list.h
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-04-30 20:33:05 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-05-03 01:20:01 +0300
commite8b073584d749bb864f495d9e1cd31b102c6283d (patch)
treefae1a577fadb7141c7035d9869c1842ec57b1a15 /input/cmd_list.h
parent14602b0201dfdbfd10c239fd978df5c269a71883 (diff)
input: remove some explicit uses of command IDs
The plan is to remove the command ID enum. This will happen by replacing the big switch statement in command.c with dispatching to per-command callbacks. As preparation, remove uses of the command IDs outside of the actual dispatching mechanism. Also remove some instances of checking cmd->def for NULL. We now require this always to be set.
Diffstat (limited to 'input/cmd_list.h')
-rw-r--r--input/cmd_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/input/cmd_list.h b/input/cmd_list.h
index 441410a570..c6d7c66100 100644
--- a/input/cmd_list.h
+++ b/input/cmd_list.h
@@ -33,6 +33,9 @@ struct mp_cmd_def {
bool on_updown; // always emit it on both up and down key events
bool vararg; // last argument can be given 0 to multiple times
bool scalable;
+ bool is_abort;
+ bool is_soft_abort;
+ bool is_ignore;
};
extern const struct mp_cmd_def mp_cmds[];