]> git.sesse.net Git - vlc/blob - include/vlc_vod.h
* include/vlc_vod.h, modules/misc/rtsp.c: skeleton for a "vod server" RTSP module.
[vlc] / include / vlc_vod.h
1 /*****************************************************************************
2  * vlc_vod.h: interface for VoD server modules
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id$
6  *
7  * Author: Gildas Bazin <gbazin@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _VLC_VOD_H
25 #define _VLC_VOD_H 1
26
27 typedef struct vod_media_t vod_media_t;
28
29 struct vod_t
30 {
31     VLC_COMMON_MEMBERS
32
33     /* Module properties */
34     module_t  *p_module;
35     vod_sys_t *p_sys;
36
37     vod_media_t * (*pf_media_new)   ( vod_t *, void * );
38     void          (*pf_media_del)   ( vod_t *, vod_media_t * );
39     int           (*pf_media_add_es)( vod_t *, vod_media_t *, es_format_t * );
40     void          (*pf_media_del_es)( vod_t *, vod_media_t *, es_format_t * );
41
42 };
43
44 #endif