* os_specific.h: OS specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: os_specific.h,v 1.1 2002/04/02 23:43:57 gbazin Exp $
+ * $Id: os_specific.h,v 1.9 2002/06/02 14:26:15 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#ifdef SYS_BEOS
-# include "beos_specific.h"
+#ifndef _NEED_OS_SPECIFIC_H
+# define _NEED_OS_SPECIFIC_H 1
#endif
-#ifdef SYS_DARWIN
+
+#if defined( SYS_BEOS )
+# include "beos_specific.h"
+#elif defined( SYS_DARWIN )
# include "darwin_specific.h"
-#endif
-#ifdef WIN32
+#elif defined( WIN32 )
# include "win32_specific.h"
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*****************************************************************************
- * main_sys_t: system specific descriptor
- ****************************************************************************/
-struct main_sys_s;
-
-#ifndef PLUGIN
-extern struct main_sys_s *p_main_sys;
#else
-# define p_main_sys (p_symbols->p_main_sys)
+# undef _NEED_OS_SPECIFIC_H
#endif
+# ifdef __cplusplus
+extern "C" {
+# endif
/*****************************************************************************
* Prototypes
*****************************************************************************/
-void system_Init ( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] );
-void system_Configure ( void );
-void system_End ( void );
+#ifdef _NEED_OS_SPECIFIC_H
+ void system_Init ( vlc_t *, int *, char *[] );
+ void system_Configure ( vlc_t * );
+ void system_End ( vlc_t * );
+#else
+# define system_Init( a, b, c ) {}
+# define system_Configure( a ) {}
+# define system_End( a ) {}
+#endif
-#ifdef __cplusplus
+# ifdef __cplusplus
}
-#endif
+# endif