diff options
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/javascript.rst | 2 | ||||
-rw-r--r-- | DOCS/man/lua.rst | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 2ebdb15896..cd553510eb 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -180,6 +180,8 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. ``mp.utils.subprocess_detached(t)`` +``mp.utils.getpid()`` (LE) + ``mp.add_hook(type, priority, fn)`` Additional utilities diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 2e354c282f..53e6d1db21 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -682,6 +682,10 @@ strictly part of the guaranteed API. The function returns ``nil``. +``utils.getpid()`` + Returns the process ID of the running mpv process. This can be used to identify + the calling mpv when launching (detached) subprocesses. + ``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 |