diff options
author | wm4 <wm4@nowhere> | 2020-02-19 22:18:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-19 22:18:15 +0100 |
commit | e2ab6b7f3567542a2a1b5aab053d513737e72878 (patch) | |
tree | 36f3f24792e4974cf1e6c5601a61e799b098e69a /player/core.h | |
parent | d06ebe2251b2ac75ebc6b63b1580ed15adecd3cc (diff) | |
download | mpv-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 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |