]> git.sesse.net Git - vlc/blob - modules/misc/dummy/interface.c
Remove stdlib.h
[vlc] / modules / misc / dummy / interface.c
1 /*****************************************************************************
2  * intf_dummy.c: dummy interface plugin
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
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.
13  * 
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.
18  *
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  *****************************************************************************/
23
24 /*****************************************************************************
25  * Preamble
26  *****************************************************************************/
27 #include <string.h>
28
29 #include <vlc/vlc.h>
30 #include <vlc_interface.h>
31
32 #include "dummy.h"
33
34 /*****************************************************************************
35  * Open: initialize dummy interface
36  *****************************************************************************/
37 int  E_(OpenIntf) ( vlc_object_t *p_this )
38 {
39     intf_thread_t *p_intf = (intf_thread_t*) p_this;
40
41 #ifdef WIN32
42     vlc_bool_t b_quiet;
43     b_quiet = config_GetInt( p_intf, "dummy-quiet" );
44     if( !b_quiet )
45         CONSOLE_INTRO_MSG;
46 #endif
47
48     msg_Info( p_intf, "using the dummy interface module..." );
49
50     p_intf->pf_run = NULL;
51
52     return VLC_SUCCESS;
53 }