summaryrefslogtreecommitdiff
path: root/src/xine-engine/configfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/configfile.c')
-rw-r--r--src/xine-engine/configfile.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c
index 618c596ff..86edf6bc3 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.24 2002/09/04 23:31:13 guenter Exp $
+ * $Id: configfile.c,v 1.25 2002/09/06 18:13:11 mroi Exp $
*
* config object (was: file) management - implementation
*
@@ -90,7 +90,7 @@ static cfg_entry_t *xine_config_add (config_values_t *this, char *key) {
* external interface
*/
-static cfg_entry_t *_xine_config_lookup_entry (config_values_t *this, char *key) {
+static cfg_entry_t *_xine_config_lookup_entry (config_values_t *this, const char *key) {
cfg_entry_t *entry;
entry = this->first;
@@ -107,8 +107,8 @@ static char *_xine_config_register_string (config_values_t *this,
char *description,
char *help,
int exp_level,
- xine_config_cb_t changed_cb,
- void *cb_data) {
+ const xine_config_cb_t changed_cb,
+ const void *const cb_data) {
cfg_entry_t *entry;
@@ -170,8 +170,8 @@ static int _xine_config_register_num (config_values_t *this,
char *description,
char *help,
int exp_level,
- xine_config_cb_t changed_cb,
- void *cb_data) {
+ const xine_config_cb_t changed_cb,
+ const void *const cb_data) {
cfg_entry_t *entry;
@@ -225,8 +225,8 @@ static int _xine_config_register_bool (config_values_t *this,
char *description,
char *help,
int exp_level,
- xine_config_cb_t changed_cb,
- void *cb_data) {
+ const xine_config_cb_t changed_cb,
+ const void *const cb_data) {
cfg_entry_t *entry;
@@ -281,8 +281,8 @@ static int _xine_config_register_range (config_values_t *this,
char *description,
char *help,
int exp_level,
- xine_config_cb_t changed_cb,
- void *cb_data) {
+ const xine_config_cb_t changed_cb,
+ const void *const cb_data) {
cfg_entry_t *entry;
@@ -368,8 +368,8 @@ static int _xine_config_register_enum (config_values_t *this,
char *description,
char *help,
int exp_level,
- xine_config_cb_t changed_cb,
- void *cb_data) {
+ const xine_config_cb_t changed_cb,
+ const void *const cb_data) {
cfg_entry_t *entry;
@@ -497,9 +497,9 @@ static void xine_config_update_string (config_values_t *this,
/*
* load/save config data from/to afile (e.g. $HOME/.xine/config)
*/
-void xine_load_config (xine_t *x, char *filename) {
+void xine_load_config (xine_p xine_ro, const char *filename) {
- config_values_t *this = x->config;
+ config_values_t *this = xine_ro->config;
FILE *f_config;
#ifdef LOG
@@ -536,9 +536,9 @@ void xine_load_config (xine_t *x, char *filename) {
}
}
-void xine_save_config (xine_t *x, char *filename) {
+void xine_save_config (xine_p xine_ro, const char *filename) {
- config_values_t *this = x->config;
+ config_values_t *this = xine_ro->config;
FILE *f_config;
#ifdef LOG
@@ -697,7 +697,7 @@ config_values_t *xine_config_init () {
return this;
}
-int xine_config_change_opt(config_values_t *config, char *opt) {
+int xine_config_change_opt(config_values_t *config, const char *opt) {
cfg_entry_t *entry;
int handled = 0;