diff options
author | Aman Gupta <aman@tmm1.net> | 2016-08-07 18:10:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-07 19:33:20 +0200 |
commit | 7ca4a453e03d76621c7740b71ba17157c7756737 (patch) | |
tree | ad29dc38fdd7719dfd536efca12e924afdc650b1 /player/client.h | |
parent | 52a0cbe4568afd11ad2e24596f81712ff508112d (diff) | |
download | mpv-7ca4a453e03d76621c7740b71ba17157c7756737.tar.bz2 mpv-7ca4a453e03d76621c7740b71ba17157c7756737.tar.xz |
client API: add stream_cb API for user-defined stream implementations
Based on #2630. Some heavy changes by committer.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player/client.h')
-rw-r--r-- | player/client.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdbool.h> #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 |