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. --- player/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index 70fc33448e..d669d2d031 100644 --- a/player/core.h +++ b/player/core.h @@ -630,6 +630,7 @@ struct mp_script_args { struct mp_scripting { const char *name; // e.g. "lua script" const char *file_ext; // e.g. "lua" + bool no_thread; // don't run load() on dedicated thread int (*load)(struct mp_script_args *args); }; bool mp_load_scripts(struct MPContext *mpctx); -- cgit v1.2.3