mpv/libmpv
wm4 218d6643e9 client API, lua, ipc: unify event struct return
Both Lua and the JSON IPC code need to convert the mpv_event struct (and
everything it points to) to Lua tables or JSON.

I was getting sick of having to make the same changes to Lua and IPC. Do
what has been done everywhere else, and let the core handle this by
going through mpv_node (which is supposed to serve both Lua tables and
JSON, and potentially other scripting language backends). Expose it as
new libmpv API function.

The new API is still a bit "rough" and support for other event types
might be added in the future.

This silently adds support for the playlist_entry_id fields to both Lua
and JSON IPC.

There is a small API change for Lua; I don't think this matters, so I
didn't care about compatibility. The new code in client.c is mashed up
from the Lua and the IPC code. The manpage additions are moved from the
Lua docs, and made slightly more "general".

Some danger for unintended regressions both in Lua and IPC. Also damn
these node functions suck, expect crashes due to UB.

Not sure why this became more code instead of less compared to before
(according to the diff stat), even though some code duplication across
Lua and IPC was removed. Software development sucks.
2020-03-21 19:33:48 +01:00
..
client.h client API, lua, ipc: unify event struct return 2020-03-21 19:33:48 +01:00
mpv.def client API, lua, ipc: unify event struct return 2020-03-21 19:33:48 +01:00
mpv.pc.in
opengl_cb.h drm/atomic: add connector to atomic context 2018-05-01 20:48:02 +03:00
render.h client API: be explicit about usage rules and deadlocks some more 2019-09-26 14:17:00 +02:00
render_gl.h drm: fix libmpv ABI breakage introduced in 351c083487 2019-09-18 23:59:32 +03:00
stream_cb.h stream_cb: add cancel_fn callback 2019-09-27 13:00:45 -07:00