summaryrefslogtreecommitdiffstats
path: root/input/cmd_parse.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 22:37:11 +0200
committerwm4 <wm4@nowhere>2014-10-10 22:37:11 +0200
commit63903c27bd9947b94ef83dc350568b5797af5281 (patch)
tree55a581c0f95e99923bed809c47b5ee7923195c15 /input/cmd_parse.h
parent2f28e071c82df90ec407e94f11fc2cb2ac95761e (diff)
downloadmpv-63903c27bd9947b94ef83dc350568b5797af5281.tar.bz2
mpv-63903c27bd9947b94ef83dc350568b5797af5281.tar.xz
input: add a function to parse mpv_node as command
For future client API enhancements.
Diffstat (limited to 'input/cmd_parse.h')
-rw-r--r--input/cmd_parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/cmd_parse.h b/input/cmd_parse.h
index c8f165b11d..3c08f0b4ba 100644
--- a/input/cmd_parse.h
+++ b/input/cmd_parse.h
@@ -20,6 +20,7 @@
struct mp_log;
struct mp_cmd;
+struct mpv_node;
// Parse text and return corresponding struct mp_cmd.
// The location parameter is for error messages.
@@ -36,6 +37,7 @@ struct mp_cmd *mp_input_parse_cmd_strv(struct mp_log *log, int def_flags,
struct mp_cmd *mp_input_parse_cmd_bstrv(struct mp_log *log, int def_flags,
int argc, bstr *argv,
const char *location);
+struct mp_cmd *mp_input_parse_cmd_node(struct mp_log *log, struct mpv_node *node);
// After getting a command from mp_input_get_cmd you need to free it using this
// function