[MPlayer-cvslog] r37127 - in trunk/libmenu: menu.c menu.h

reimar subversion at mplayerhq.hu
Sun Apr 6 19:56:13 CEST 2014


Author: reimar
Date: Sun Apr  6 19:56:13 2014
New Revision: 37127

Log:
menu: Add a few "const" to string arguments.

Modified:
   trunk/libmenu/menu.c
   trunk/libmenu/menu.h

Modified: trunk/libmenu/menu.c
==============================================================================
--- trunk/libmenu/menu.c	Sun Apr  6 19:17:42 2014	(r37126)
+++ trunk/libmenu/menu.c	Sun Apr  6 19:56:13 2014	(r37127)
@@ -230,7 +230,7 @@ static int menu_parse_config(char* buffe
 #define BUF_STEP 1024
 #define BUF_MIN 128
 #define BUF_MAX BUF_STEP*1024
-int menu_init(struct MPContext *mpctx, char* cfg_file) {
+int menu_init(struct MPContext *mpctx, const char* cfg_file) {
   char* buffer = NULL;
   int bl = BUF_STEP, br = 0;
   int f = 0, fd = -1;
@@ -313,7 +313,7 @@ int menu_dflt_read_key(menu_t* menu,int 
   return 0;
 }
 
-menu_t* menu_open(char *name) {
+menu_t* menu_open(const char *name) {
   menu_t* m;
   int i;
 

Modified: trunk/libmenu/menu.h
==============================================================================
--- trunk/libmenu/menu.h	Sun Apr  6 19:17:42 2014	(r37126)
+++ trunk/libmenu/menu.h	Sun Apr  6 19:56:13 2014	(r37127)
@@ -82,11 +82,11 @@ typedef struct menu_info_s {
 #define MENU_CMD_CLICK 11
 
 /// Global init/uninit
-int menu_init(struct MPContext *mpctx, char* cfg_file);
+int menu_init(struct MPContext *mpctx, const char* cfg_file);
 void menu_uninit(void);
 
 /// Open a menu defined in the config file
-menu_t* menu_open(char *name);
+menu_t* menu_open(const char *name);
 
 void menu_draw(menu_t* menu,mp_image_t* mpi);
 void menu_read_cmd(menu_t* menu,int cmd);


More information about the MPlayer-cvslog mailing list