summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-01 03:41:46 +0200
committerwm4 <wm4@nowhere>2014-06-01 03:41:46 +0200
commit5a5a3c53f75a093b1a0642174cdbd5a9504e083f (patch)
tree73aa81a8a15c4dd0636551c1797fb621010fa13a /player/command.h
parentc84f8735960fc3af6c50d0af675dfe9593174be5 (diff)
downloadmpv-5a5a3c53f75a093b1a0642174cdbd5a9504e083f.tar.bz2
mpv-5a5a3c53f75a093b1a0642174cdbd5a9504e083f.tar.xz
client API: report success status when running commands
Until now, an error was reported only if the command couldn't be parsed. Attempt to do more fine-grained reporting. This is not necessarily perfect, but it's an improvement.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.h b/player/command.h
index 258eada148..7ceeda22ff 100644
--- a/player/command.h
+++ b/player/command.h
@@ -26,7 +26,7 @@ struct mp_log;
void command_init(struct MPContext *mpctx);
void command_uninit(struct MPContext *mpctx);
-void run_command(struct MPContext *mpctx, struct mp_cmd *cmd);
+int run_command(struct MPContext *mpctx, struct mp_cmd *cmd);
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);