From e2ab6b7f3567542a2a1b5aab053d513737e72878 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Feb 2020 22:18:15 +0100 Subject: 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. --- osdep/subprocess.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'osdep/subprocess.c') diff --git a/osdep/subprocess.c b/osdep/subprocess.c index 8bb2acd0b7..8a930a60df 100644 --- a/osdep/subprocess.c +++ b/osdep/subprocess.c @@ -123,6 +123,12 @@ void mp_subprocess_detached(struct mp_log *log, char **args) talloc_free(p); } +void mp_subprocess2(struct mp_subprocess_opts *opts, + struct mp_subprocess_result *res) +{ + *res = (struct mp_subprocess_result){.error = MP_SUBPROCESS_EUNSUPPORTED}; +} + #endif const char *mp_subprocess_err_str(int num) -- cgit v1.2.3