]> git.sesse.net Git - vlc/blob - modules/access/vcdx/vcd.h
Replace block_New() with block_Alloc()
[vlc] / modules / access / vcdx / vcd.h
1 /*****************************************************************************
2  * vcd.h : VCD input module header for vlc
3  *         using libcdio, libvcd and libvcdinfo
4  *****************************************************************************
5  * Copyright (C) 2003, 2004 VLC authors and VideoLAN
6  * $Id$
7  *
8  * Authors: Rocky Bernstein <rocky@panix.com>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #include <libvcd/info.h>
26 #include <vlc_interface.h>
27
28 #define VCD_MRL_PREFIX "vcdx://"
29
30 /*****************************************************************************
31  * vcd_data_t: structure for communication between access and intf.
32  *****************************************************************************/
33 typedef struct {
34 #ifdef FINISHED
35     vcdplay_ptr             vmg;
36 #endif
37
38 #ifdef DEMUX_FINISHED
39     int                     i_audio_nb;
40     int                     i_spu_nb;
41 #endif
42
43     int                     i_still_time;
44     bool              b_end_of_cell;
45
46 #ifdef FINISHED
47     vcdplay_event_t         event;
48     vcdplay_ctrl_t          control;
49     vcdplay_highlight_t     hli;
50 #endif
51
52 } vcd_data_t;
53
54 int  VCDSetArea      ( access_t * );
55 int  VCDSeek         ( access_t *, uint64_t );