summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-20 23:00:12 +0200
committerwm4 <wm4@nowhere>2015-04-20 23:00:12 +0200
commitf13266014f328fed9eda41047f0a1700348ba923 (patch)
treec96231ccdc0f363933a2ed47d8a0a8bdca70eb83 /player/command.h
parentdebf57bb0d5896fc68e6acc293112eaaf0d3f2d4 (diff)
downloadmpv-f13266014f328fed9eda41047f0a1700348ba923.tar.bz2
mpv-f13266014f328fed9eda41047f0a1700348ba923.tar.xz
client API: add glue for making full use of mpv_command_node()
Until now, the return value was always MPV_FORMAT_NONE. Now a command can actually set it. This will be used in one of the following commits.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/command.h b/player/command.h
index 1a36c79570..447e01c011 100644
--- a/player/command.h
+++ b/player/command.h
@@ -21,11 +21,12 @@
struct MPContext;
struct mp_cmd;
struct mp_log;
+struct mpv_node;
void command_init(struct MPContext *mpctx);
void command_uninit(struct MPContext *mpctx);
-int run_command(struct MPContext *mpctx, struct mp_cmd *cmd);
+int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *res);
char *mp_property_expand_string(struct MPContext *mpctx, const char *str);
char *mp_property_expand_escaped_string(struct MPContext *mpctx, const char *str);
void property_print_help(struct mp_log *log);