changeset 18889:e60c8c7399d2

get_path as const, patch by Stefan Huehner, stefan AT huehner-org
author reynaldo
date Mon, 03 Jul 2006 23:27:37 +0000
parents ab29b3c4f94e
children 1138e7091daa
files Gui/app.c Gui/cfg.c Gui/interface.h get_path.c input/input.c libaf/af_export.c libmpcodecs/dec_audio.c libmpcodecs/dec_video.c libmpdemux/dvbin.c libmpdvdkit2/dvd_reader.c libvo/font_load_ft.c libvo/vo_dxr2.c loader/qtx/list.c loader/qtx/qtxload.c loader/registry.c
diffstat 15 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/app.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/Gui/app.c	Mon Jul 03 23:27:37 2006 +0000
@@ -70,7 +70,7 @@
 
 // ---
 
-extern char *get_path(char *);
+extern char *get_path(const char *);
 
 listItems   appMPlayer;
 
--- a/Gui/cfg.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/Gui/cfg.c	Mon Jul 03 23:27:37 2006 +0000
@@ -75,7 +75,7 @@
 int    gui_sub_pos_y = -1;
 // ---
 
-extern char * get_path( char * filename );
+extern char * get_path( const char * filename );
 extern int    flip;
 extern int    frame_dropping;
 extern int    stop_xscreensaver;
--- a/Gui/interface.h	Mon Jul 03 23:18:06 2006 +0000
+++ b/Gui/interface.h	Mon Jul 03 23:27:37 2006 +0000
@@ -142,7 +142,7 @@
 #define guiFilenames	4
 #define guiALL		0xffffffff
 
-extern char *get_path(char *filename); 
+extern char *get_path(const char *filename); 
 
 extern void guiInit( void );
 extern void guiDone( void );
--- a/get_path.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/get_path.c	Mon Jul 03 23:27:37 2006 +0000
@@ -18,7 +18,7 @@
 #include <string.h>
 #endif
 
-char *get_path(char *filename){
+char *get_path(const char *filename){
 	char *homedir;
 	char *buff;
 #if defined(__MINGW32__)
--- a/input/input.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/input/input.c	Mon Jul 03 23:27:37 2006 +0000
@@ -1562,7 +1562,7 @@
   return 0;
 }
 
-extern char *get_path(char *filename);
+extern char *get_path(const char *filename);
 
 void
 mp_input_init(int use_gui) {
--- a/libaf/af_export.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libaf/af_export.c	Mon Jul 03 23:27:37 2006 +0000
@@ -23,7 +23,7 @@
 
 #include "af.h"
 
-extern char * get_path( char * filename );
+extern char * get_path( const char * filename );
 
 
 #define DEF_SZ 512 // default buffer size (in samples)
--- a/libmpcodecs/dec_audio.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libmpcodecs/dec_audio.c	Mon Jul 03 23:27:37 2006 +0000
@@ -199,7 +199,7 @@
     return 0;
 }
 
-extern char *get_path(char *filename);
+extern char *get_path(const char *filename);
 
 int init_best_audio_codec(sh_audio_t *sh_audio,char** audio_codec_list,char** audio_fm_list){
 char* ac_l_default[2]={"",(char*)NULL};
--- a/libmpcodecs/dec_video.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libmpcodecs/dec_video.c	Mon Jul 03 23:27:37 2006 +0000
@@ -251,7 +251,7 @@
     return 0;
 }
 
-extern char *get_path(char *filename);
+extern char *get_path(const char *filename);
 
 int init_best_video_codec(sh_video_t *sh_video,char** video_codec_list,char** video_fm_list){
 char* vc_l_default[2]={"",(char*)NULL};
--- a/libmpdemux/dvbin.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libmpdemux/dvbin.c	Mon Jul 03 23:27:37 2006 +0000
@@ -623,7 +623,7 @@
 
 
 
-extern char *get_path(char *);
+extern char *get_path(const char *);
 
 static void dvbin_close(stream_t *stream)
 {
--- a/libmpdvdkit2/dvd_reader.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libmpdvdkit2/dvd_reader.c	Mon Jul 03 23:27:37 2006 +0000
@@ -213,7 +213,7 @@
 #ifndef HAVE_MPLAYER
  #include "get_path.c"
 #else
- extern char * get_path( char * filename );
+ extern char * get_path( const char * filename );
 #endif
 
 //extern char * dvdcss_cache_dir;
--- a/libvo/font_load_ft.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libvo/font_load_ft.c	Mon Jul 03 23:27:37 2006 +0000
@@ -38,7 +38,7 @@
 #define HAVE_FREETYPE21
 #endif
 
-char *get_path(char *filename);
+char *get_path(const char *filename);
 
 char *subtitle_font_encoding = NULL;
 float text_font_scale_factor = 5.0;
--- a/libvo/vo_dxr2.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/libvo/vo_dxr2.c	Mon Jul 03 23:27:37 2006 +0000
@@ -26,7 +26,7 @@
 #include <dxr2ioctl.h>
 
 
-extern char *get_path(char *filename);
+extern char *get_path(const char *filename);
 
 extern float monitor_aspect;
 extern float movie_aspect;
--- a/loader/qtx/list.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/loader/qtx/list.c	Mon Jul 03 23:27:37 2006 +0000
@@ -11,7 +11,7 @@
 #include "qtxsdk/components.h"
 #include "qtxsdk/select.h"
 
-char* get_path(char* x){  return strdup(x);}
+char* get_path(const char* x){  return strdup(x);}
 void* LoadLibraryA(char* name);
 void* GetProcAddress(void* handle,char* func);
 
--- a/loader/qtx/qtxload.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/loader/qtx/qtxload.c	Mon Jul 03 23:27:37 2006 +0000
@@ -22,7 +22,7 @@
     return(0);
 }
 
-char *get_path(char* x){  return strdup(x);}
+char *get_path(const char* x){  return strdup(x);}
 
 void* LoadLibraryA(char* name);
 void* GetProcAddress(void* handle,char* func);
--- a/loader/registry.c	Mon Jul 03 23:18:06 2006 +0000
+++ b/loader/registry.c	Mon Jul 03 23:27:37 2006 +0000
@@ -24,7 +24,7 @@
 //#undef TRACE
 //#define TRACE printf
 
-extern char *get_path ( char * );
+extern char *get_path ( const char * );
 
 // ...can be set before init_registry() call
 char* regpathname = NULL;