Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

interface.c

00001 /*****************************************************************************
00002  * intf_dummy.c: dummy interface plugin
00003  *****************************************************************************
00004  * Copyright (C) 2000, 2001 the VideoLAN team
00005  * $Id: interface.c 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Samuel Hocevar <[email protected]>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  * 
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 /*****************************************************************************
00025  * Preamble
00026  *****************************************************************************/
00027 #include <stdlib.h>                                      /* malloc(), free() */
00028 #include <string.h>
00029 
00030 #include <vlc/vlc.h>
00031 #include <vlc/intf.h>
00032 
00033 /*****************************************************************************
00034  * Local prototypes.
00035  *****************************************************************************/
00036 static void Run   ( intf_thread_t * );
00037 
00038 /*****************************************************************************
00039  * Open: initialize dummy interface
00040  *****************************************************************************/
00041 int  E_(OpenIntf) ( vlc_object_t *p_this )
00042 {
00043     intf_thread_t *p_intf = (intf_thread_t*) p_this;
00044 
00045 #ifdef WIN32
00046     vlc_bool_t b_quiet;
00047     b_quiet = config_GetInt( p_intf, "dummy-quiet" );
00048     if( !b_quiet )
00049         CONSOLE_INTRO_MSG;
00050 #endif
00051 
00052     msg_Info( p_intf, "Using the dummy interface module..." );
00053 
00054     p_intf->pf_run = Run;
00055 
00056     return VLC_SUCCESS;
00057 }
00058 
00059 /*****************************************************************************
00060  * Run: main loop
00061  *****************************************************************************/
00062 static void Run( intf_thread_t *p_intf )
00063 {
00064     while( !p_intf->b_die )
00065     {
00066         /* Wait a bit */
00067         msleep( INTF_IDLE_SLEEP );
00068     }
00069 }
00070 

Generated on Tue Dec 20 10:14:48 2005 for vlc-0.8.4a by  doxygen 1.4.2