summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-03-01 17:38:35 -0600
committerDudemanguy <random342@airmail.cc>2024-03-21 14:48:53 +0000
commit91489c946689763c36e4d720d6048037252818f7 (patch)
treed6dcbf5aa8d09f8ff6c572b52ff56114704bcf0e /player/command.h
parent46a35e2edc1905a9cbe4674f454ef056a6d1eef4 (diff)
downloadmpv-91489c946689763c36e4d720d6048037252818f7.tar.bz2
mpv-91489c946689763c36e4d720d6048037252818f7.tar.xz
options: add --input-commands option
Basically a simple way to perform any command/property action from the command line. This takes the exact same syntax as input.conf but not including the key naturally. Potentially useful for weird properties that don't map well to options (like ao-volume). Fixes #12353.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.h b/player/command.h
index 185b78fdbe..31e3b32a78 100644
--- a/player/command.h
+++ b/player/command.h
@@ -70,6 +70,7 @@ void run_command(struct MPContext *mpctx, struct mp_cmd *cmd,
struct mp_abort_entry *abort,
void (*on_completion)(struct mp_cmd_ctx *cmd),
void *on_completion_priv);
+void run_command_opts(struct MPContext *mpctx);
void mp_cmd_ctx_complete(struct mp_cmd_ctx *cmd);
PRINTF_ATTRIBUTE(3, 4)
void mp_cmd_msg(struct mp_cmd_ctx *cmd, int status, const char *msg, ...);