1 /*****************************************************************************
2 * beos.cpp : BeOS plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 VideoLAN
5 * $Id: BeOS.cpp,v 1.8 2003/03/30 18:14:37 gbazin Exp $
7 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
8 * Samuel Hocevar <sam@zoy.org>
9 * Stephan Aßmus <stippi@yellowbites.com>
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.
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.
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 *****************************************************************************/
26 /*****************************************************************************
28 *****************************************************************************/
29 #include <stdlib.h> /* malloc(), free() */
34 /*****************************************************************************
36 *****************************************************************************/
37 int E_(OpenIntf) ( vlc_object_t * );
38 void E_(CloseIntf) ( vlc_object_t * );
40 int E_(OpenAudio) ( vlc_object_t * );
41 void E_(CloseAudio) ( vlc_object_t * );
43 int E_(OpenVideo) ( vlc_object_t * );
44 void E_(CloseVideo) ( vlc_object_t * );
46 /*****************************************************************************
48 *****************************************************************************/
50 set_description( _("BeOS standard API interface") );
52 set_capability( "interface", 100 );
53 set_callbacks( E_(OpenIntf), E_(CloseIntf) );
54 add_integer( "beos-intf-width", 0, NULL, "", "", VLC_TRUE );
55 add_integer( "beos-intf-height", 0, NULL, "", "", VLC_TRUE );
56 add_integer( "beos-intf-xpos", 0, NULL, "", "", VLC_TRUE );
57 add_integer( "beos-intf-ypos", 0, NULL, "", "", VLC_TRUE );
58 add_integer( "beos-playlist-width", 0, NULL, "", "", VLC_TRUE );
59 add_integer( "beos-playlist-height", 0, NULL, "", "", VLC_TRUE );
60 add_integer( "beos-playlist-xpos", 0, NULL, "", "", VLC_TRUE );
61 add_integer( "beos-playlist-ypos", 0, NULL, "", "", VLC_TRUE );
62 add_bool( "beos-playlist-show", 0, NULL, "", "", VLC_TRUE );
63 add_integer( "beos-messages-width", 0, NULL, "", "", VLC_TRUE );
64 add_integer( "beos-messages-height", 0, NULL, "", "", VLC_TRUE );
65 add_integer( "beos-messages-xpos", 0, NULL, "", "", VLC_TRUE );
66 add_integer( "beos-messages-ypos", 0, NULL, "", "", VLC_TRUE );
67 add_bool( "beos-messages-show", 0, NULL, "", "", VLC_TRUE );
68 add_integer( "beos-settings-width", 0, NULL, "", "", VLC_TRUE );
69 add_integer( "beos-settings-height", 0, NULL, "", "", VLC_TRUE );
70 add_integer( "beos-settings-xpos", 0, NULL, "", "", VLC_TRUE );
71 add_integer( "beos-settings-ypos", 0, NULL, "", "", VLC_TRUE );
72 add_bool( "beos-settings-show", 0, NULL, "", "", VLC_TRUE );
73 add_integer( "beos-screenshot-format", 0, NULL, "", "", VLC_TRUE );
74 add_string( "beos-screenshot-path", 0, NULL, "", "", VLC_TRUE );
75 add_bool( "beos-use-dvd-menus", 0, NULL, "", "", VLC_TRUE );
77 set_capability( "video output", 100 );
78 set_callbacks( E_(OpenVideo), E_(CloseVideo) );
80 set_capability( "audio output", 100 );
81 set_callbacks( E_(OpenAudio), E_(CloseAudio) );