]> git.sesse.net Git - vlc/commitdiff
vlc_os_specific.h: Use const for argv.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 11:45:35 +0000 (11:45 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 11:45:35 +0000 (11:45 +0000)
include/vlc_os_specific.h
src/misc/beos_specific.cpp
src/misc/darwin_specific.c
src/misc/win32_specific.c

index dea352b86a644d19fe0b3ef9ca2e04e45c3856c2..342b23bd78c7b264dab6e2496cef246d9c06e35f 100644 (file)
@@ -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 ) {}
index 779bcebab357a0c949ec2d8f3041774b3656cafd..3eb2b2d70b3248411cbb847bea9dbc392eddc981 100644 (file)
@@ -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[] )
 {
 }
 
index e040014c5f1487fddb151ec9d9691f989ee8b437..63830f610d33739199a1b21d9f2953ec60665506 100644 (file)
@@ -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 )
index 6be6beac38f6ef3448876cc630b4d07a197b719f..137ac397db21ad315f1da71d872b05737959aebf 100644 (file)
@@ -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 */