summaryrefslogtreecommitdiffstats
path: root/libmpv/mpv.def
diff options
context:
space:
mode:
authorDark <dark@volatile.bz>2019-07-13 20:36:34 -0400
committerwm4 <wm4@nowhere>2019-09-21 14:24:42 +0200
commita41f1a21d67b3d3dd6b173e563176f90074f589e (patch)
tree48aa95b77ac18bdfe208be6743a8b25d883411ee /libmpv/mpv.def
parent74b4760aa81222de32147e16fa7605ce55db9922 (diff)
downloadmpv-a41f1a21d67b3d3dd6b173e563176f90074f589e.tar.bz2
mpv-a41f1a21d67b3d3dd6b173e563176f90074f589e.tar.xz
client API: add mpv_command_ret
This change adds a version of `mpv_command` that also returns a result. The main rationale behind this is `mpv_command_node` requires defining multiple structs before you can even use it, which results in a pretty painful to use interface just to get the result from a command. There isn't really a good name for this function, so I'm open to suggestions on a better name for it.
Diffstat (limited to 'libmpv/mpv.def')
-rw-r--r--libmpv/mpv.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpv/mpv.def b/libmpv/mpv.def
index 5b1c2423ff..a2c6fd1ac9 100644
--- a/libmpv/mpv.def
+++ b/libmpv/mpv.def
@@ -5,6 +5,7 @@ mpv_command
mpv_command_async
mpv_command_node
mpv_command_node_async
+mpv_command_ret
mpv_command_string
mpv_create
mpv_create_client