diff options
Diffstat (limited to 'libmpv/stream_cb.h')
-rw-r--r-- | libmpv/stream_cb.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libmpv/stream_cb.h b/libmpv/stream_cb.h index 63593d7228..9ae6f31a16 100644 --- a/libmpv/stream_cb.h +++ b/libmpv/stream_cb.h @@ -119,7 +119,7 @@ typedef int64_t (*mpv_stream_cb_read_fn)(void *cookie, char *buf, uint64_t nbyte * * @param cookie opaque cookie identifying the stream, * returned from mpv_stream_cb_open_fn - * @param offset target absolut stream position + * @param offset target absolute stream position * @return the resulting offset of the stream * MPV_ERROR_UNSUPPORTED or MPV_ERROR_GENERIC if the seek failed */ @@ -230,8 +230,15 @@ typedef int (*mpv_stream_cb_open_ro_fn)(void *user_data, char *uri, * callback. * @return error code */ -int mpv_stream_cb_add_ro(mpv_handle *ctx, const char *protocol, void *user_data, - mpv_stream_cb_open_ro_fn open_fn); +MPV_EXPORT int mpv_stream_cb_add_ro(mpv_handle *ctx, const char *protocol, void *user_data, + mpv_stream_cb_open_ro_fn open_fn); + +#ifdef MPV_CPLUGIN_DYNAMIC_SYM + +MPV_DEFINE_SYM_PTR(mpv_stream_cb_add_ro) +#define mpv_stream_cb_add_ro pfn_mpv_stream_cb_add_ro + +#endif #ifdef __cplusplus } |