1 /*****************************************************************************
2 * dvd.c : dvdplay module for vlc
3 *****************************************************************************
4 * This plugins should handle all the known specificities of the DVD format,
5 * especially the 2048 bytes logical block size.
6 * It depends on: libdvdplay for ifo files and block reading.
7 *****************************************************************************
9 * Copyright (C) 2001 VideoLAN
10 * $Id: dvd.c,v 1.3 2003/02/27 13:19:44 gbazin Exp $
12 * Authors: Samuel Hocevar <sam@zoy.org>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
27 *****************************************************************************/
29 /*****************************************************************************
31 *****************************************************************************/
32 #include <stdlib.h> /* malloc(), free() */
33 #include <string.h> /* strdup() */
37 /*****************************************************************************
39 *****************************************************************************/
40 int E_(OpenDVD) ( vlc_object_t * );
41 void E_(CloseDVD) ( vlc_object_t * );
42 int E_(InitDVD) ( vlc_object_t * );
43 void E_(EndDVD) ( vlc_object_t * );
44 int E_(OpenIntf) ( vlc_object_t * );
45 void E_(CloseIntf) ( vlc_object_t * );
47 /*****************************************************************************
49 *****************************************************************************/
51 add_usage_hint( N_("[dvdplay:][device][@[title][,[chapter][,angle]]]") );
52 add_category_hint( N_("dvd"), NULL, VLC_TRUE );
53 set_description( _("dvdplay input module") );
55 set_capability( "access", 120 );
56 set_callbacks( E_(OpenDVD), E_(CloseDVD) );
57 add_shortcut( "dvd" );
59 set_capability( "demux", 0 );
60 set_callbacks( E_(InitDVD), E_(EndDVD) );
62 set_capability( "interface", 0 );
63 set_callbacks( E_(OpenIntf), E_(CloseIntf) );