X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_vod.h;h=18fdd32df7e460960308a8a685d4bd90dc455b9e;hb=827dc1fc9da0006aa7f1619a9747e0880695688a;hp=8d67aafab74a16689fffb548e4dc90dfdc8383fa;hpb=be2365a24ad053eb7aaf6e98b0fc9f877466b750;p=vlc diff --git a/include/vlc_vod.h b/include/vlc_vod.h index 8d67aafab7..18fdd32df7 100644 --- a/include/vlc_vod.h +++ b/include/vlc_vod.h @@ -18,11 +18,22 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifndef _VLC_VOD_H -#define _VLC_VOD_H 1 +#ifndef VLC_VOD_H +#define VLC_VOD_H 1 + +/** + * \file + * This file defines an interface for VOD server modules in vlc + */ + +/** + * \defgroup server Video On Demand (VOD) + * Video On Demand (VOD) functionality is provided from VLM. + * @{ + */ struct vod_t { @@ -43,7 +54,7 @@ struct vod_t }; static inline int vod_MediaControl( vod_t *p_vod, vod_media_t *p_media, - char *psz_id, int i_query, ... ) + const char *psz_id, int i_query, ... ) { va_list args; int i_result; @@ -59,10 +70,16 @@ static inline int vod_MediaControl( vod_t *p_vod, vod_media_t *p_media, enum vod_query_e { - VOD_MEDIA_PLAY, /* arg1= double * res= */ - VOD_MEDIA_PAUSE, /* arg1= double * res= */ - VOD_MEDIA_STOP, /* arg1= double res=can fail */ - VOD_MEDIA_SEEK, /* arg1= double * res= */ + VOD_MEDIA_PLAY, /* arg1= char * res= */ + VOD_MEDIA_PAUSE, /* arg1= res= */ + VOD_MEDIA_STOP, /* arg1= res=can fail */ + VOD_MEDIA_SEEK, /* arg1= double res= */ + VOD_MEDIA_REWIND, /* arg1= double res= */ + VOD_MEDIA_FORWARD, /* arg1= double res= */ }; +/** + * @} + */ + #endif