/*****************************************************************************
* vlc.c: the vlc player
*****************************************************************************
- * Copyright (C) 1998-2001 VideoLAN
- * $Id: vlc.c,v 1.14 2002/10/11 22:32:56 sam Exp $
+ * Copyright (C) 1998-2004 VideoLAN
+ * $Id: vlc.c,v 1.21 2004/01/25 17:16:05 zorglub Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#include <signal.h> /* SIGHUP, SIGINT, SIGKILL */
+#include "config.h"
+
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* putenv(), strtol(), */
-#include <signal.h> /* SIGHUP, SIGINT, SIGKILL */
-#include <time.h> /* time() */
+#ifdef HAVE_SIGNAL_H
+# include <signal.h> /* SIGHUP, SIGINT, SIGKILL */
+#endif
+#ifdef HAVE_TIME_H
+# include <time.h> /* time() */
+#endif
#include <vlc/vlc.h>
{
int i_ret;
- fprintf( stderr, "VideoLAN Client %s\n", VLC_Version() );
+ fprintf( stderr, "VLC media player %s\n", VLC_Version() );
#ifdef HAVE_PUTENV
# ifdef DEBUG
/* Run libvlc, in non-blocking mode */
i_ret = VLC_Play( 0 );
- /* Add background interfaces */
-#if 0
- { int i; for( i=10; i--; ) VLC_AddIntf( 0, "dummy", 0 ); }
- VLC_AddIntf( 0, "dummy", VLC_FALSE );
- VLC_AddIntf( 0, "logger", VLC_FALSE );
- VLC_AddIntf( 0, "xosd", VLC_FALSE );
- VLC_AddIntf( 0, "gtk", VLC_FALSE );
- VLC_AddIntf( 0, "kde", VLC_FALSE );
- VLC_AddIntf( 0, "rc", VLC_FALSE );
-#endif
-
/* Add a blocking interface and keep the return value */
i_ret = VLC_AddIntf( 0, NULL, VLC_TRUE );