From f60826c3a14ba3b49077f17e5364b7347f9b468a Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Mar 2018 16:24:49 +0100 Subject: client API: add a first class hook API, and deprecate old API As it turns out, there are multiple libmpv users who saw a need to use the hook API. The API is kind of shitty and was never meant to be actually public (it was mostly a hack for the ytdl script). Introduce a proper API and deprecate the old one. The old one will probably continue to work for a few releases, but will be removed eventually. There are some slight changes to the old API, but if a user followed the manual properly, it won't break. Mostly untested. Appears to work with ytdl_hook. --- libmpv/mpv.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpv/mpv.def') diff --git a/libmpv/mpv.def b/libmpv/mpv.def index ccd98422a7..1d828f4b2b 100644 --- a/libmpv/mpv.def +++ b/libmpv/mpv.def @@ -21,6 +21,8 @@ mpv_get_property_string mpv_get_sub_api mpv_get_time_us mpv_get_wakeup_pipe +mpv_hook_add +mpv_hook_continue mpv_initialize mpv_load_config_file mpv_observe_property -- cgit v1.2.3