* darwin_specific.c: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: darwin_specific.c,v 1.7 2001/12/30 07:09:56 sam Exp $
+ * $Id: darwin_specific.c,v 1.14 2002/07/05 11:18:56 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
#include <string.h> /* strdup() */
#include <stdlib.h> /* free() */
-#include <videolan/vlc.h>
+#include <vlc/vlc.h>
/*****************************************************************************
* Static vars
/*****************************************************************************
* system_Init: fill in program path.
*****************************************************************************/
-void system_Init( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] )
+void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
{
char i_dummy;
char *p_char, *p_oldchar = &i_dummy;
p_char++;
}
-
- return;
+
+ /* Run the interface with a real-time priority too */
+ {
+ struct sched_param param;
+ param.sched_priority = 10;
+ if (pthread_setschedparam(pthread_self(), SCHED_RR, ¶m))
+ {
+ msg_Err( p_this, "pthread_setschedparam failed" );
+ }
+ }
+}
+
+/*****************************************************************************
+ * system_Configure: check for system specific configuration options.
+ *****************************************************************************/
+void system_Configure( vlc_t *p_this )
+{
+
}
/*****************************************************************************
* system_End: free the program path.
*****************************************************************************/
-void system_End( void )
+void system_End( vlc_object_t *p_this )
{
free( psz_program_path );
}