From 5a5a3c53f75a093b1a0642174cdbd5a9504e083f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Jun 2014 03:41:46 +0200 Subject: 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. --- player/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.h') 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); -- cgit v1.2.3