X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_stream.h;h=92aee352eedf6b808ea3e99326a902cdab0c220f;hb=a403be13cf0f5565cfa5ca27f845219bf13ab1af;hp=13a0155a018f627e07c67f16b8874671e82cfc84;hpb=c0f4bfc5d85c96cf29f4bd05fa5fa42eb344d1dc;p=vlc diff --git a/include/vlc_stream.h b/include/vlc_stream.h index 13a0155a01..92aee352ee 100644 --- a/include/vlc_stream.h +++ b/include/vlc_stream.h @@ -26,6 +26,11 @@ #include +/** + * \file + * This file defines structures and functions for stream (between access and demux) descriptor in vlc + */ + # ifdef __cplusplus extern "C" { # endif @@ -59,7 +64,11 @@ enum stream_query_e STREAM_CONTROL_ACCESS, /* arg1= int i_access_query, args res: can fail if access unreachable or access control answer */ - STREAM_GET_CONTENT_TYPE, /**< arg1= char ** res=can file */ + STREAM_GET_CONTENT_TYPE, /**< arg1= char ** res=can fail */ + + /* SET_RECORD: + * XXX only data read through stream_Read/Block will be recorded */ + STREAM_SET_RECORD_STATE, /**< arg1=bool, arg2=const char *psz_ext (if arg1 is true) res=can fail */ }; VLC_EXPORT( int, stream_Read, ( stream_t *s, void *p_read, int i_read ) ); @@ -122,7 +131,6 @@ VLC_EXPORT( stream_t *,__stream_DemuxNew, ( vlc_object_t *p_obj, const char *psz VLC_EXPORT( void, stream_DemuxSend, ( stream_t *s, block_t *p_block ) ); VLC_EXPORT( void, stream_DemuxDelete,( stream_t *s ) ); - #define stream_MemoryNew( a, b, c, d ) __stream_MemoryNew( VLC_OBJECT(a), b, c, d ) VLC_EXPORT( stream_t *,__stream_MemoryNew, (vlc_object_t *p_obj, uint8_t *p_buffer, int64_t i_size, bool i_preserve_memory ) ); #define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b )