]> git.sesse.net Git - vlc/blob - modules/access/dvdplay/dvd.c
* ALL: i18n updates and fixes.
[vlc] / modules / access / dvdplay / dvd.c
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  *****************************************************************************
8  *    
9  * Copyright (C) 2001 VideoLAN
10  * $Id: dvd.c,v 1.3 2003/02/27 13:19:44 gbazin Exp $
11  *
12  * Authors: Samuel Hocevar <sam@zoy.org>
13  *
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.
18  * 
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.
23  *
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  *****************************************************************************/
28
29 /*****************************************************************************
30  * Preamble
31  *****************************************************************************/
32 #include <stdlib.h>                                      /* malloc(), free() */
33 #include <string.h>                                              /* strdup() */
34
35 #include <vlc/vlc.h>
36
37 /*****************************************************************************
38  * Exported prototypes
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 * );
46
47 /*****************************************************************************
48  * Module descriptor
49  *****************************************************************************/
50 vlc_module_begin();
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") );
54     add_submodule();
55         set_capability( "access", 120 );
56         set_callbacks( E_(OpenDVD), E_(CloseDVD) );
57         add_shortcut( "dvd" );
58     add_submodule();
59         set_capability( "demux", 0 );
60         set_callbacks( E_(InitDVD), E_(EndDVD) );
61     add_submodule();
62         set_capability( "interface", 0 );
63         set_callbacks( E_(OpenIntf), E_(CloseIntf) );
64 vlc_module_end();
65