root/modules/misc/dummy/interface.c
| Revision 3561b9b28f58eb7a4183e158a8fd973800d31ceb, 1.9 kB (checked in by Rémi Denis-Courmont <rdenis@simphalempin.com>, 6 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 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 | |
| 28 | #ifdef HAVE_CONFIG_H |
| 29 | # include "config.h" |
| 30 | #endif |
| 31 | |
| 32 | #include <vlc_common.h> |
| 33 | #include <vlc_interface.h> |
| 34 | |
| 35 | #include "dummy.h" |
| 36 | |
| 37 | /***************************************************************************** |
| 38 | * Open: initialize dummy interface |
| 39 | *****************************************************************************/ |
| 40 | int OpenIntf ( vlc_object_t *p_this ) |
| 41 | { |
| 42 | intf_thread_t *p_intf = (intf_thread_t*) p_this; |
| 43 | |
| 44 | #ifdef WIN32 |
| 45 | bool b_quiet; |
| 46 | b_quiet = config_GetInt( p_intf, "dummy-quiet" ); |
| 47 | if( !b_quiet ) |
| 48 | CONSOLE_INTRO_MSG; |
| 49 | #endif |
| 50 | |
| 51 | msg_Info( p_intf, "using the dummy interface module..." ); |
| 52 | |
| 53 | p_intf->pf_run = NULL; |
| 54 | |
| 55 | return VLC_SUCCESS; |
| 56 | } |
Note: See TracBrowser for help on using the browser.
