X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_access.h;h=567928b7f510b0632d276fbfa17c59582a6c71ce;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=d12953a41c525ff4f1844f65f63f9b490f211e4c;hpb=0d1f966a0b3581d3e96423ce34f32b4da7725c31;p=vlc diff --git a/include/vlc_access.h b/include/vlc_access.h index d12953a41c..567928b7f5 100644 --- a/include/vlc_access.h +++ b/include/vlc_access.h @@ -80,8 +80,8 @@ struct access_t /* Access name (empty if non forced) */ char *psz_access; - /* Access path/url/filename/.... */ - char *psz_path; + char *psz_location; /**< Location (URL with the scheme stripped) */ + char *psz_filepath; /**< Local file path (if applicable) */ /* Access can fill this entry to force a demuxer * XXX: fill it once you know for sure you will succeed @@ -95,7 +95,7 @@ struct access_t /* Called for each seek. * XXX can be null */ - int (*pf_seek) ( access_t *, int64_t ); /* can be null if can't seek */ + int (*pf_seek) ( access_t *, uint64_t ); /* can be null if can't seek */ /* Used to retreive and configure the access * XXX mandatory. look at access_query_e to know what query you *have to* support */ @@ -107,8 +107,8 @@ struct access_t unsigned int i_update; /* Access sets them on change, Input removes them once take into account*/ - int64_t i_size; /* Write only for access, read only for input */ - int64_t i_pos; /* idem */ + uint64_t i_size; /* Write only for access, read only for input */ + uint64_t i_pos; /* idem */ bool b_eof; /* idem */ int i_title; /* idem, start from 0 (could be menu) */ @@ -151,7 +151,7 @@ static inline void access_InitFields( access_t *p_a ) * This function will return the parent input of this access. * It is retained. It can return NULL. */ -VLC_EXPORT( input_thread_t *, access_GetParentInput, ( access_t *p_access ) ); +VLC_EXPORT( input_thread_t *, access_GetParentInput, ( access_t *p_access ) LIBVLC_USED ); #define ACCESS_SET_CALLBACKS( read, block, control, seek ) \ p_access->pf_read = read; \ @@ -171,4 +171,8 @@ VLC_EXPORT( input_thread_t *, access_GetParentInput, ( access_t *p_access ) ); p_sys = p_access->p_sys = calloc( 1, sizeof( access_sys_t ) ); \ if( !p_sys ) return VLC_ENOMEM; +/** + * @} + */ + #endif