From 7ca4a453e03d76621c7740b71ba17157c7756737 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Sun, 7 Aug 2016 18:10:05 +0200 Subject: client API: add stream_cb API for user-defined stream implementations Based on #2630. Some heavy changes by committer. Signed-off-by: wm4 --- player/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/client.h') diff --git a/player/client.h b/player/client.h index a9d6cbde52..e8866225a7 100644 --- a/player/client.h +++ b/player/client.h @@ -5,6 +5,7 @@ #include #include "libmpv/client.h" +#include "libmpv/stream_cb.h" struct MPContext; struct mpv_handle; @@ -46,4 +47,7 @@ struct mpv_opengl_cb_context *mp_opengl_create(struct mpv_global *g, struct mp_client_api *client_api); void kill_video(struct mp_client_api *client_api); +bool mp_streamcb_lookup(struct mpv_global *g, const char *protocol, + void **out_user_data, mpv_stream_cb_open_ro_fn *out_fn); + #endif -- cgit v1.2.3