Commit f8570a69 authored by Gildas Bazin's avatar Gildas Bazin

* ./include/os_specific.h: changed prototype of system_*() to use vlc_t
instead of vlc_object_t.
parent 695669c9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* os_specific.h: OS specific features * os_specific.h: OS specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: os_specific.h,v 1.8 2002/06/01 12:31:57 sam Exp $ * $Id: os_specific.h,v 1.9 2002/06/02 14:26:15 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -44,9 +44,9 @@ extern "C" { ...@@ -44,9 +44,9 @@ extern "C" {
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#ifdef _NEED_OS_SPECIFIC_H #ifdef _NEED_OS_SPECIFIC_H
void system_Init ( vlc_object_t *, int *, char *[] ); void system_Init ( vlc_t *, int *, char *[] );
void system_Configure ( vlc_object_t * ); void system_Configure ( vlc_t * );
void system_End ( vlc_object_t * ); void system_End ( vlc_t * );
#else #else
# define system_Init( a, b, c ) {} # define system_Init( a, b, c ) {}
# define system_Configure( a ) {} # define system_Configure( a ) {}
...@@ -56,4 +56,3 @@ extern "C" { ...@@ -56,4 +56,3 @@ extern "C" {
# ifdef __cplusplus # ifdef __cplusplus
} }
# endif # endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* beos_init.cpp: Initialization for BeOS specific features * beos_init.cpp: Initialization for BeOS specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: beos_specific.cpp,v 1.22 2002/06/02 09:03:54 sam Exp $ * $Id: beos_specific.cpp,v 1.23 2002/06/02 14:26:15 gbazin Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* *
...@@ -64,7 +64,7 @@ static void AppThread( vlc_object_t *p_appthread ); ...@@ -64,7 +64,7 @@ static void AppThread( vlc_object_t *p_appthread );
/***************************************************************************** /*****************************************************************************
* system_Init: create a BApplication object and fill in program path. * system_Init: create a BApplication object and fill in program path.
*****************************************************************************/ *****************************************************************************/
void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
{ {
p_this->p_vlc->p_appthread = p_this->p_vlc->p_appthread =
(vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) ); (vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) );
...@@ -76,7 +76,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -76,7 +76,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] )
/***************************************************************************** /*****************************************************************************
* system_Configure: check for system specific configuration options. * system_Configure: check for system specific configuration options.
*****************************************************************************/ *****************************************************************************/
void system_Configure( vlc_object_t * ) void system_Configure( vlc_t * )
{ {
} }
...@@ -84,7 +84,7 @@ void system_Configure( vlc_object_t * ) ...@@ -84,7 +84,7 @@ void system_Configure( vlc_object_t * )
/***************************************************************************** /*****************************************************************************
* system_End: destroy the BApplication object. * system_End: destroy the BApplication object.
*****************************************************************************/ *****************************************************************************/
void system_End( vlc_object_t *p_this ) void system_End( vlc_t *p_this )
{ {
/* Tell the BApplication to die */ /* Tell the BApplication to die */
be_app->PostMessage( B_QUIT_REQUESTED ); be_app->PostMessage( B_QUIT_REQUESTED );
...@@ -167,4 +167,3 @@ void VlcApplication::ReadyToRun( ) ...@@ -167,4 +167,3 @@ void VlcApplication::ReadyToRun( )
/* Tell the main thread we are finished initializing the BApplication */ /* Tell the main thread we are finished initializing the BApplication */
vlc_thread_ready( p_this ); vlc_thread_ready( p_this );
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* darwin_specific.c: Darwin specific features * darwin_specific.c: Darwin specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: darwin_specific.c,v 1.11 2002/06/02 01:20:52 massiot Exp $ * $Id: darwin_specific.c,v 1.12 2002/06/02 14:26:16 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -33,7 +33,7 @@ static char * psz_program_path; ...@@ -33,7 +33,7 @@ static char * psz_program_path;
/***************************************************************************** /*****************************************************************************
* system_Init: fill in program path. * system_Init: fill in program path.
*****************************************************************************/ *****************************************************************************/
void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
{ {
char i_dummy; char i_dummy;
char *p_char, *p_oldchar = &i_dummy; char *p_char, *p_oldchar = &i_dummy;
...@@ -68,7 +68,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -68,7 +68,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] )
/***************************************************************************** /*****************************************************************************
* system_Configure: check for system specific configuration options. * system_Configure: check for system specific configuration options.
*****************************************************************************/ *****************************************************************************/
void system_Configure( vlc_object_t *p_this ) void system_Configure( vlc_t *p_this )
{ {
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_specific.c: Win32 specific features * win32_specific.c: Win32 specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: win32_specific.c,v 1.10 2002/06/01 16:45:35 sam Exp $ * $Id: win32_specific.c,v 1.11 2002/06/02 14:26:16 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/***************************************************************************** /*****************************************************************************
* system_Init: initialize winsock and misc other things. * system_Init: initialize winsock and misc other things.
*****************************************************************************/ *****************************************************************************/
void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
{ {
WSADATA Data; WSADATA Data;
int i_err; int i_err;
...@@ -58,7 +58,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -58,7 +58,7 @@ void system_Init( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[] )
/***************************************************************************** /*****************************************************************************
* system_Configure: check for system specific configuration options. * system_Configure: check for system specific configuration options.
*****************************************************************************/ *****************************************************************************/
void system_Configure( vlc_object_t *p_this ) void system_Configure( vlc_t *p_this )
{ {
p_this->p_vlc->b_fast_pthread = config_GetInt( p_this, "fast_pthread" ); p_this->p_vlc->b_fast_pthread = config_GetInt( p_this, "fast_pthread" );
} }
...@@ -66,7 +66,7 @@ void system_Configure( vlc_object_t *p_this ) ...@@ -66,7 +66,7 @@ void system_Configure( vlc_object_t *p_this )
/***************************************************************************** /*****************************************************************************
* system_End: terminate winsock. * system_End: terminate winsock.
*****************************************************************************/ *****************************************************************************/
void system_End( vlc_object_t *p_this ) void system_End( vlc_t *p_this )
{ {
WSACleanup(); WSACleanup();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment