X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_vod.h;h=2f094338a9ca3ea9e8236863bda9f549abe53687;hb=757ce25689dc8241817763dd357a6f4105418326;hp=389213a76144f61a07172c1235f8cc4de26a7417;hpb=85b29bdc288a1573d43bd524908be5748a9b3640;p=vlc diff --git a/include/vlc_vod.h b/include/vlc_vod.h index 389213a761..2f094338a9 100644 --- a/include/vlc_vod.h +++ b/include/vlc_vod.h @@ -1,28 +1,40 @@ /***************************************************************************** * vlc_vod.h: interface for VoD server modules ***************************************************************************** - * Copyright (C) 2000, 2001 VideoLAN (Centrale Réseaux) and its contributors + * Copyright (C) 2000, 2001 VLC authors and VideoLAN * $Id$ * * Author: Gildas Bazin * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * 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. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software 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 vod Video On Demand (VOD) + * \ingroup server + * Video On Demand (VOD) functionality is provided from VLM. + * @{ + */ struct vod_t { @@ -32,18 +44,16 @@ struct vod_t module_t *p_module; vod_sys_t *p_sys; - vod_media_t * (*pf_media_new) ( vod_t *, char *, input_item_t * ); + vod_media_t * (*pf_media_new) ( vod_t *, const char *, input_item_t * ); void (*pf_media_del) ( vod_t *, vod_media_t * ); - int (*pf_media_add_es)( vod_t *, vod_media_t *, es_format_t * ); - void (*pf_media_del_es)( vod_t *, vod_media_t *, es_format_t * ); /* Owner properties */ - int (*pf_media_control) ( void *, vod_media_t *, char *, int, va_list ); + int (*pf_media_control) ( void *, vod_media_t *, const char *, int, va_list ); void *p_data; }; 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 +69,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 *, arg2= int64_t *, res= */ + VOD_MEDIA_PAUSE, /* arg1= int64_t * 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