summaryrefslogtreecommitdiff
path: root/src/xine-engine/configfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/configfile.h')
-rw-r--r--src/xine-engine/configfile.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/xine-engine/configfile.h b/src/xine-engine/configfile.h
index 1df406037..f89f0d682 100644
--- a/src/xine-engine/configfile.h
+++ b/src/xine-engine/configfile.h
@@ -17,11 +17,14 @@
* 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.19 2002/10/26 03:56:32 storri Exp $
+ * $Id: configfile.h,v 1.20 2003/04/20 21:13:22 guenter Exp $
*
* config file management
*
*/
+/* For the _MSC_VER (Win32) port the "this" variable
+ * was removed from all prototypes.and changed to "cfg"
+ */
#ifndef HAVE_CONFIGFILE_H
#define HAVE_CONFIGFILE_H
@@ -99,7 +102,7 @@ struct config_values_s {
* from the config file otherwise
*/
- char* (*register_string) (config_values_t *this,
+ char* (*register_string) (config_values_t *,
const char *key,
const char *def_value,
const char *description,
@@ -108,7 +111,7 @@ struct config_values_s {
xine_config_cb_t changed_cb,
void *cb_data);
- int (*register_range) (config_values_t *this,
+ int (*register_range) (config_values_t *,
const char *key,
int def_value,
int min, int max,
@@ -118,7 +121,7 @@ struct config_values_s {
xine_config_cb_t changed_cb,
void *cb_data);
- int (*register_enum) (config_values_t *this,
+ int (*register_enum) (config_values_t *,
const char *key,
int def_value,
char **values,
@@ -128,7 +131,7 @@ struct config_values_s {
xine_config_cb_t changed_cb,
void *cb_data);
- int (*register_num) (config_values_t *this,
+ int (*register_num) (config_values_t *,
const char *key,
int def_value,
const char *description,
@@ -137,7 +140,7 @@ struct config_values_s {
xine_config_cb_t changed_cb,
void *cb_data);
- int (*register_bool) (config_values_t *this,
+ int (*register_bool) (config_values_t *,
const char *key,
int def_value,
const char *description,
@@ -147,10 +150,10 @@ struct config_values_s {
void *cb_data);
/* convenience function to update range, enum, num and bool values */
- void (*update_num) (config_values_t *this, const char *key, int value);
+ void (*update_num) (config_values_t *, const char *key, int value);
/* convenience function to update string values */
- void (*update_string) (config_values_t *this, const char *key, const char *value);
+ void (*update_string) (config_values_t *, const char *key, const char *value);
/* small utility function for enum handling */
int (*parse_enum) (const char *str, char **values);
@@ -162,17 +165,17 @@ struct config_values_s {
* and you changed the value of this item
*/
- cfg_entry_t* (*lookup_entry) (config_values_t *this, const char *key);
+ cfg_entry_t* (*lookup_entry) (config_values_t *, const char *key);
/*
* unregister callback function
*/
- void (*unregister_callback) (config_values_t *this, const char *key);
+ void (*unregister_callback) (config_values_t *, const char *key);
/*
* dispose of all config entries in memory
*/
- void (*dispose) (config_values_t *this);
+ void (*dispose) (config_values_t *);
/*
* config values are stored here: