summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-19 23:53:40 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-19 23:53:40 +0000
commit828ab12ab770b1258bc89086f3337b497f9268fa (patch)
tree07fe754ea7cc5062faeb50e20a43e0246c86c011
parent0af1bad9390353d6f2b1f72a22fe6e4865fbf15f (diff)
downloadxine-lib-828ab12ab770b1258bc89086f3337b497f9268fa.tar.gz
xine-lib-828ab12ab770b1258bc89086f3337b497f9268fa.tar.bz2
Make the enum functions accept the strict parameter, const char* array rather than char* array.
CVS patchset: 8605 CVS date: 2007/02/19 23:53:40
-rw-r--r--src/xine-engine/configfile.c4
-rw-r--r--src/xine-engine/configfile.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c
index 5d552f8f1..3a523c936 100644
--- a/src/xine-engine/configfile.c
+++ b/src/xine-engine/configfile.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: configfile.c,v 1.82 2006/12/19 19:10:52 dsalt Exp $
+ * $Id: configfile.c,v 1.83 2007/02/19 23:53:40 dgp85 Exp $
*
* config object (was: file) management - implementation
*
@@ -717,7 +717,7 @@ static int config_parse_enum (const char *str, char **values) {
static int config_register_enum (config_values_t *this,
const char *key,
int def_value,
- char **values,
+ const char **values,
const char *description,
const char *help,
int exp_level,
diff --git a/src/xine-engine/configfile.h b/src/xine-engine/configfile.h
index 29413610c..9dd368d5a 100644
--- a/src/xine-engine/configfile.h
+++ b/src/xine-engine/configfile.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: configfile.h,v 1.39 2006/12/19 19:10:52 dsalt Exp $
+ * $Id: configfile.h,v 1.40 2007/02/19 23:53:40 dgp85 Exp $
*
* config file management
*
@@ -131,7 +131,7 @@ struct config_values_s {
int (*register_enum) (config_values_t *self,
const char *key,
int def_value,
- char **values,
+ const char **values,
const char *description,
const char *help,
int exp_level,