summaryrefslogtreecommitdiffstats
path: root/DOCS/man/lua.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-07-17 01:36:33 +0200
committerwm4 <wm4@nowhere>2020-07-20 21:02:17 +0200
commit0e7f53a5bc76cc3f042791b5f8923563842224a3 (patch)
tree45f9991c00a80151ea881b01434e04f21d4ae0c1 /DOCS/man/lua.rst
parent0279a44d93a378fbdff393d6568a691817f83518 (diff)
downloadmpv-0e7f53a5bc76cc3f042791b5f8923563842224a3.tar.bz2
mpv-0e7f53a5bc76cc3f042791b5f8923563842224a3.tar.xz
lua: add mp.get_env_list() function
Because Lua is too stupid to provide this directly, and I sort of need it.
Diffstat (limited to 'DOCS/man/lua.rst')
-rw-r--r--DOCS/man/lua.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index 9499847b58..88fb4cb7ce 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -826,6 +826,10 @@ strictly part of the guaranteed API.
Returns the process ID of the running mpv process. This can be used to identify
the calling mpv when launching (detached) subprocesses.
+``utils.get_env_list()``
+ Returns the C environment as a list of strings. (Do not confuse this with
+ the Lua "environment", which is an unrelated concept.)
+
``utils.parse_json(str [, trail])``
Parses the given string argument as JSON, and returns it as a Lua table. On
error, returns ``nil, error``. (Currently, ``error`` is just a string