diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_list.c | 5 | ||||
-rw-r--r-- | input/cmd_list.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index 28c89884e7..380e241b60 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -199,6 +199,11 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_AUDIO_REMOVE, "audio_remove", { OARG_INT(-1) } }, { MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } }, + { MP_CMD_RESCAN_EXTERNAL_FILES, "rescan_external_files", { + OARG_CHOICE(0, ({"keep-selection", 0}, + {"reselect", 1})), + }}, + {0} }; diff --git a/input/cmd_list.h b/input/cmd_list.h index c761be98ee..d57da46d06 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -111,6 +111,8 @@ enum mp_command_type { MP_CMD_HOOK_ADD, MP_CMD_HOOK_ACK, + MP_CMD_RESCAN_EXTERNAL_FILES, + // Internal MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p }; |