summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-11-22 14:47:50 +0100
committerwm4 <wm4@nowhere>2016-11-22 15:54:44 +0100
commitf30c5d09f4478ca40ceabc90d57fea68965778df (patch)
tree13ee64c5b6554cb2c46d0998185f51f4a7c30a25 /input
parent745862131f2e03bfb7b8fae4499d84522f0cc1a2 (diff)
downloadmpv-f30c5d09f4478ca40ceabc90d57fea68965778df.tar.bz2
mpv-f30c5d09f4478ca40ceabc90d57fea68965778df.tar.xz
client API: turn mpv_suspend() and mpv_resume() into stubs
As threatened by the API changes document. This commit also removes or stubs equivalent calls in IPC and Lua scripting. The stubs are left to maintain ABI compatibility. The semantics of the API functions have been close enough to doing nothing that this probably won't even break existing API users. Probably.
Diffstat (limited to 'input')
-rw-r--r--input/ipc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/input/ipc.c b/input/ipc.c
index c7563e30d8..f15f24d229 100644
--- a/input/ipc.c
+++ b/input/ipc.c
@@ -384,12 +384,6 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent,
rc = mpv_request_log_messages(client,
cmd_node->u.list->values[1].u.string);
- } else if (!strcmp("suspend", cmd)) {
- mpv_suspend(client);
- rc = MPV_ERROR_SUCCESS;
- } else if (!strcmp("resume", cmd)) {
- mpv_resume(client);
- rc = MPV_ERROR_SUCCESS;
} else if (!strcmp("enable_event", cmd) ||
!strcmp("disable_event", cmd))
{