This is too late to change command line options anyway.
}
/* System specific configuration */
- system_Configure( p_libvlc, &i_argc, ppsz_argv );
+ system_Configure( p_libvlc, i_argc, ppsz_argv );
/* Add service discovery modules */
psz_modules = var_InheritString( p_libvlc, "services-discovery" );
* OS-specific initialization
*/
void system_Init ( libvlc_int_t *, int *, const char *[] );
-void system_Configure ( libvlc_int_t *, int *, const char *[] );
+void system_Configure ( libvlc_int_t *, int, const char *const [] );
void system_End ( libvlc_int_t * );
/*
/*****************************************************************************
* system_Configure: check for system specific configuration options.
*****************************************************************************/
-void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Configure( libvlc_int_t *p_this,
+ int i_argc, const char *const ppsz_argv[] )
{
(void)p_this;
- (void)pi_argc;
+ (void)i_argc;
(void)ppsz_argv;
}
(void)libvlc; (void)argc; (void)argv;
}
-void system_Configure (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Configure (libvlc_int_t *libvlc,
+ int argc, const char *const argv[])
{
(void)libvlc; (void)argc; (void)argv;
}
(void)libvlc; (void)argc; (void)argv;
}
-void system_Configure (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Configure (libvlc_int_t *libvlc,
+ int argc, const char *const argv[])
{
(void)libvlc; (void)argc; (void)argv;
}
char data[];
} vlc_ipc_data_t;
-void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_argv[] )
{
#if !defined( UNDER_CE )
/* Raise default priority of the current process */
/* We assume that the remaining parameters are filenames
* and their input options */
- if( *pi_argc - 1 >= vlc_optind )
+ if( i_argc - 1 >= vlc_optind )
{
COPYDATASTRUCT wm_data;
int i_opt;
vlc_ipc_data_t *p_data;
size_t i_data = sizeof (*p_data);
- for( i_opt = vlc_optind; i_opt < *pi_argc; i_opt++ )
+ for( i_opt = vlc_optind; i_opt < i_argc; i_opt++ )
{
i_data += sizeof (size_t);
i_data += strlen( ppsz_argv[ i_opt ] ) + 1;
}
p_data = malloc( i_data );
- p_data->argc = *pi_argc - vlc_optind;
+ p_data->argc = i_argc - vlc_optind;
p_data->enqueue = var_InheritBool( p_this, "playlist-enqueue" );
i_data = 0;
- for( i_opt = vlc_optind; i_opt < *pi_argc; i_opt++ )
+ for( i_opt = vlc_optind; i_opt < i_argc; i_opt++ )
{
size_t i_len = strlen( ppsz_argv[ i_opt ] ) + 1;
/* Windows will never switch to an architecture