summaryrefslogtreecommitdiffstats
path: root/mpvcore/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-31 23:23:38 +0100
committerwm4 <wm4@nowhere>2013-10-31 23:30:14 +0100
commit71ded03123a704ddcbf018dcb0ec633475ccb04a (patch)
treebddcea247a2e2396fbf414168b25aac2a57316d7 /mpvcore/input
parent94542abf2e2ccb123cf3b0c9eef76a2290dd19b1 (diff)
downloadmpv-71ded03123a704ddcbf018dcb0ec633475ccb04a.tar.bz2
mpv-71ded03123a704ddcbf018dcb0ec633475ccb04a.tar.xz
command: add generic "multiply" command
Essentially works like "add".
Diffstat (limited to 'mpvcore/input')
-rw-r--r--mpvcore/input/input.c1
-rw-r--r--mpvcore/input/input.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c
index 5b74f1aa33..aaa9cc14df 100644
--- a/mpvcore/input/input.c
+++ b/mpvcore/input/input.c
@@ -216,6 +216,7 @@ static const mp_cmd_t mp_cmds[] = {
.optional = true,
.v.d = 1 },
}},
+ { MP_CMD_MULTIPLY, "multiply", { ARG_STRING, ARG_DOUBLE } },
{ MP_CMD_ENABLE_INPUT_SECTION, "enable_section", {
ARG_STRING,
diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h
index 3e8da7eb75..b3e8ae9543 100644
--- a/mpvcore/input/input.h
+++ b/mpvcore/input/input.h
@@ -66,6 +66,7 @@ enum mp_command_type {
MP_CMD_RADIO_SET_FREQ,
MP_CMD_ADD,
MP_CMD_CYCLE,
+ MP_CMD_MULTIPLY,
MP_CMD_RADIO_STEP_FREQ,
MP_CMD_TV_STEP_FREQ,
MP_CMD_TV_START_SCAN,