mirror of
https://github.com/mpv-player/mpv
synced 2025-04-24 12:24:21 +00:00
scripting: rename backend names for concise naming
This commit is contained in:
parent
cb829879af
commit
6bb3e05d49
@ -1256,7 +1256,7 @@ static void add_functions(js_State *J, struct script_ctx *ctx)
|
|||||||
|
|
||||||
// main export of this file, used by cplayer to load js scripts
|
// main export of this file, used by cplayer to load js scripts
|
||||||
const struct mp_scripting mp_scripting_js = {
|
const struct mp_scripting mp_scripting_js = {
|
||||||
.name = "javascript",
|
.name = "js",
|
||||||
.file_ext = "js",
|
.file_ext = "js",
|
||||||
.load = s_load_javascript,
|
.load = s_load_javascript,
|
||||||
};
|
};
|
||||||
|
@ -1335,7 +1335,7 @@ static void add_functions(struct script_ctx *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct mp_scripting mp_scripting_lua = {
|
const struct mp_scripting mp_scripting_lua = {
|
||||||
.name = "lua script",
|
.name = "lua",
|
||||||
.file_ext = "lua",
|
.file_ext = "lua",
|
||||||
.load = load_lua,
|
.load = load_lua,
|
||||||
};
|
};
|
||||||
|
@ -396,11 +396,10 @@ error: ;
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct mp_scripting mp_scripting_cplugin = {
|
const struct mp_scripting mp_scripting_cplugin = {
|
||||||
|
.name = "cplugin",
|
||||||
#if HAVE_WIN32
|
#if HAVE_WIN32
|
||||||
.name = "DLL plugin",
|
|
||||||
.file_ext = "dll",
|
.file_ext = "dll",
|
||||||
#else
|
#else
|
||||||
.name = "SO plugin",
|
|
||||||
.file_ext = "so",
|
.file_ext = "so",
|
||||||
#endif
|
#endif
|
||||||
.load = load_cplugin,
|
.load = load_cplugin,
|
||||||
@ -458,7 +457,7 @@ static int load_run(struct mp_script_args *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct mp_scripting mp_scripting_run = {
|
const struct mp_scripting mp_scripting_run = {
|
||||||
.name = "spawned IPC process",
|
.name = "ipc",
|
||||||
.file_ext = "run",
|
.file_ext = "run",
|
||||||
.no_thread = true,
|
.no_thread = true,
|
||||||
.load = load_run,
|
.load = load_run,
|
||||||
|
Loading…
Reference in New Issue
Block a user