diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_list.c | 3 | ||||
-rw-r--r-- | input/cmd_list.h | 3 | ||||
-rw-r--r-- | input/input.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index bac9b7931a..e6329b9d89 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -170,6 +170,9 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_WRITE_WATCH_LATER_CONFIG, "write_watch_later_config", }, + { MP_CMD_HOOK_ADD, "hook_add", { ARG_STRING, ARG_INT, ARG_INT } }, + { MP_CMD_HOOK_ACK, "hook_ack", { ARG_STRING } }, + {0} }; diff --git a/input/cmd_list.h b/input/cmd_list.h index b2b8e2a4d2..7d395cb329 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -97,6 +97,9 @@ enum mp_command_type { MP_CMD_WRITE_WATCH_LATER_CONFIG, + MP_CMD_HOOK_ADD, + MP_CMD_HOOK_ACK, + // Internal MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p }; diff --git a/input/input.h b/input/input.h index 40c9369271..877f79a0e6 100644 --- a/input/input.h +++ b/input/input.h @@ -82,6 +82,7 @@ typedef struct mp_cmd { struct mp_cmd *queue_next; double scale; // for scaling numeric arguments const struct mp_cmd_def *def; + char *sender; // name of the client API user which sent this } mp_cmd_t; struct mp_input_src { |