]> git.sesse.net Git - vlc/blob - modules/gui/beos/BeOS.cpp
Improvements to preferences
[vlc] / modules / gui / beos / BeOS.cpp
1 /*****************************************************************************
2  * beos.cpp : BeOS plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id$
6  *
7  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
8  *          Samuel Hocevar <sam@zoy.org>
9  *          Stephan AÃ\9fmus <stippi@yellowbites.com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24  *****************************************************************************/
25
26 /*****************************************************************************
27  * Preamble
28  *****************************************************************************/
29 #include <stdlib.h>                                      /* malloc(), free() */
30 #include <string.h>
31
32 #include <vlc/vlc.h>
33
34 /*****************************************************************************
35  * External prototypes
36  *****************************************************************************/
37 int  E_(OpenIntf)     ( vlc_object_t * );
38 void E_(CloseIntf)    ( vlc_object_t * );
39
40 int  E_(OpenAudio)    ( vlc_object_t * );
41 void E_(CloseAudio)   ( vlc_object_t * );
42
43 int  E_(OpenVideo)    ( vlc_object_t * );
44 void E_(CloseVideo)   ( vlc_object_t * );
45
46 /*****************************************************************************
47  * Module descriptor
48  *****************************************************************************/
49 static char * ppsz_screenshotformat[] = { "TGA", "PPM", "PNG", "JPEG", "BMP" };
50
51 vlc_module_begin();
52     set_category( CAT_INTERFACE );
53     set_subcategory( SUBCAT_INTERFACE_GENERAL );
54     add_bool( "beos-dvdmenus", 0, NULL, _("Use DVD Menus"), "", VLC_TRUE );
55     add_string( "beos-screenshotpath", "/boot/home/", NULL,
56                 _("Screenshot Path"), "", VLC_TRUE );
57     add_string( "beos-screenshotformat", "PNG",  NULL,
58                 _("Screenshot Format"),"", VLC_TRUE );
59     change_string_list( ppsz_screenshotformat, 0, 0 );
60     set_description( _("BeOS standard API interface") );
61     set_capability( "interface", 100 );
62     set_callbacks( E_(OpenIntf), E_(CloseIntf) );
63
64     add_submodule();
65         set_capability( "video output", 100 );
66         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
67     add_submodule();
68         set_capability( "audio output", 100 );
69         set_callbacks( E_(OpenAudio), E_(CloseAudio) );
70 vlc_module_end();