From 31adc87bde5d7d671b9b52cd912875d037501a1c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Jan 2016 22:49:10 +0100 Subject: global: add client API pointer to library handle Makes the next commit simpler. It's probably a bad idea to add more fields to the global state, but on the other hand the client API state is pretty much per-instance anyway. It also will help with things like the proposed libmpv custom stream API. --- player/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/client.h') diff --git a/player/client.h b/player/client.h index 5bc3c770eb..a9d6cbde52 100644 --- a/player/client.h +++ b/player/client.h @@ -31,6 +31,7 @@ void mp_client_property_change(struct MPContext *mpctx, const char *name); struct mpv_handle *mp_new_client(struct mp_client_api *clients, const char *name); struct mp_log *mp_client_get_log(struct mpv_handle *ctx); struct MPContext *mp_client_get_core(struct mpv_handle *ctx); +struct MPContext *mp_client_api_get_core(struct mp_client_api *api); void mp_resume_all(struct mpv_handle *ctx); -- cgit v1.2.3