summaryrefslogtreecommitdiffstats
path: root/input/ipc-win.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-19 22:18:15 +0100
committerwm4 <wm4@nowhere>2020-02-19 22:18:15 +0100
commite2ab6b7f3567542a2a1b5aab053d513737e72878 (patch)
tree36f3f24792e4974cf1e6c5601a61e799b098e69a /input/ipc-win.c
parentd06ebe2251b2ac75ebc6b63b1580ed15adecd3cc (diff)
downloadmpv-e2ab6b7f3567542a2a1b5aab053d513737e72878.tar.bz2
mpv-e2ab6b7f3567542a2a1b5aab053d513737e72878.tar.xz
scripting: add a way to run sub processes as "scripts"
This is just a more convenient way to start IPC client scripts per mpv instance. Does not work on Windows, although it could if the subprocess and IPC parts are implemented (and I guess .exe/.bat suffixes are required). Also untested whether it builds on Windows. A lot of other things are untested too, so don't complain.
Diffstat (limited to 'input/ipc-win.c')
-rw-r--r--input/ipc-win.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/input/ipc-win.c b/input/ipc-win.c
index 727a8cca73..9672ec85fe 100644
--- a/input/ipc-win.c
+++ b/input/ipc-win.c
@@ -335,6 +335,12 @@ static void ipc_start_client_json(struct mp_ipc_ctx *ctx, int id, HANDLE h)
ipc_start_client(ctx, client);
}
+bool mp_ipc_start_anon_client(struct mp_ipc_ctx *ctx, struct mpv_handle *h,
+ int out_fd[2])
+{
+ return false;
+}
+
static void *ipc_thread(void *p)
{
// Use PIPE_TYPE_MESSAGE | PIPE_READMODE_BYTE so message framing is