Commit 616b36ce authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

vlc_os_specific.h: Use const for argv.

parent 06fe038d
......@@ -48,8 +48,8 @@ extern "C" {
* Prototypes
*****************************************************************************/
#ifdef _NEED_OS_SPECIFIC_H
void system_Init ( libvlc_int_t *, int *, char *[] );
void system_Configure ( libvlc_int_t *, int *, char *[] );
void system_Init ( libvlc_int_t *, int *, const char *[] );
void system_Configure ( libvlc_int_t *, int *, const char *[] );
void system_End ( libvlc_int_t * );
#else
# define system_Init( a, b, c ) {}
......
......@@ -82,7 +82,7 @@ static void AppThread( vlc_object_t *p_appthread );
/*****************************************************************************
* system_Init: create a BApplication object and fill in program path.
*****************************************************************************/
void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
{
vlc_global()->p_appthread =
(vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) );
......@@ -95,7 +95,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
/*****************************************************************************
* system_Configure: check for system specific configuration options.
*****************************************************************************/
void system_Configure( libvlc_int_t *, int *pi_argc, char *ppsz_argv[] )
void system_Configure( libvlc_int_t *, int *pi_argc, const char *ppsz_argv[] )
{
}
......
......@@ -74,12 +74,13 @@ static CFArrayRef copy_all_locale_indentifiers(void)
/*****************************************************************************
* system_Init: fill in program path & retrieve language
*****************************************************************************/
void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
{
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 */
......@@ -174,9 +175,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
/*****************************************************************************
* system_Configure: check for system specific configuration options.
*****************************************************************************/
void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
{
(void)p_this;
(void)pi_argc;
(void)ppsz_argv;
}
/*****************************************************************************
......@@ -184,6 +187,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
*****************************************************************************/
void system_End( libvlc_int_t *p_this )
{
(void)p_this;
free( vlc_global()->psz_vlcpath );
if ( vlc_global()->iconv_macosx != (vlc_iconv_t)-1 )
......
......@@ -45,7 +45,7 @@
/*****************************************************************************
* system_Init: initialize winsock and misc other things.
*****************************************************************************/
void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
{
WSADATA Data;
......@@ -139,7 +139,7 @@ typedef struct
char data[0];
} vlc_ipc_data_t;
void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
{
#if !defined( UNDER_CE )
/* Raise default priority of the current process */
......
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