#endif
/* System specific initialization code */
- system_Init( p_libvlc, &i_argc, ppsz_argv );
+ system_Init();
/*
* Support for gettext
/*
* OS-specific initialization
*/
-void system_Init ( libvlc_int_t *, int *, const char *[] );
+void system_Init ( void );
void system_Configure ( libvlc_int_t *, int, const char *const [] );
void system_End ( libvlc_int_t * );
/*****************************************************************************
* system_Init: fill in program path & retrieve language
*****************************************************************************/
-void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Init(void)
{
- VLC_UNUSED(p_this);
char i_dummy;
char *p_char = NULL;
char *p_oldchar = &i_dummy;
unsigned int i;
- (void)pi_argc;
/* Get the full program path and name */
/* First try to see if we are linked to the framework */
if ( !_NSGetExecutablePath(path, &path_len) )
p_char = strdup(path);
}
- if( !p_char )
- {
- /* We are not linked to the VLC.framework, return the executable path */
- p_char = strdup( ppsz_argv[ 0 ] );
- }
free(psz_vlcpath);
psz_vlcpath = p_char;
# include <stdlib.h>
#endif
-void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Init (void)
{
#ifdef __GLIBC__
const char *glcv = gnu_get_libc_version ();
if (once.refs++ == 0)
set_libvlc_path ();
vlc_mutex_unlock (&once.lock);
-
- (void)libvlc; (void)argc; (void)argv;
}
void system_Configure (libvlc_int_t *libvlc,
psz_vlcpath = (char *)PKGLIBDIR;
}
-void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Init (void)
{
pthread_once_t once = PTHREAD_ONCE_INIT;
pthread_once (&once, set_libvlc_path);
- (void)libvlc; (void)argc; (void)argv;
}
void system_Configure (libvlc_int_t *libvlc,
/*****************************************************************************
* system_Init: initialize winsock and misc other things.
*****************************************************************************/
-void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Init( void )
{
- VLC_UNUSED( p_this ); VLC_UNUSED( pi_argc ); VLC_UNUSED( ppsz_argv );
WSADATA Data;
MEMORY_BASIC_INFORMATION mbi;