1 /*****************************************************************************
2 * intf_dummy.c: dummy interface plugin
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 the VideoLAN team
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
34 #include <vlc_interface.h>
37 #define QUIET_TEXT N_("Do not open a DOS command box interface")
38 #define QUIET_LONGTEXT N_( \
39 "By default the dummy interface plugin will start a DOS command box. " \
40 "Enabling the quiet mode will not bring this command box but can also " \
41 "be pretty annoying when you want to stop VLC and no video window is " \
45 static int Open( vlc_object_t * );
48 set_shortname( N_("Dummy") )
49 set_description( N_("Dummy interface") )
50 set_capability( "interface", 0 )
51 set_callbacks( Open, NULL )
53 add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
57 /*****************************************************************************
58 * Open: initialize dummy interface
59 *****************************************************************************/
60 static int Open( vlc_object_t *p_this )
62 intf_thread_t *p_intf = (intf_thread_t*) p_this;
66 b_quiet = var_InheritBool( p_intf, "dummy-quiet" );
71 msg_Info( p_intf, "using the dummy interface module..." );