From 90bfed2c4c86e943ad850a023a28df31c558d75f Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sun, 12 Aug 2007 20:54:03 +0100 Subject: Extend config key translation to allow front ends to provide an additional list. Intent is to allow front ends to rename their old, badly-named, config items. --- include/xine.h.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/xine.h.in b/include/xine.h.in index f25038796..58507e6f1 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -1532,6 +1532,16 @@ int xine_config_lookup_entry (xine_t *self, const char *key, void xine_config_update_entry (xine_t *self, const xine_cfg_entry_t *entry) XINE_PROTECTED; +/* + * translation of old configuration entry names + */ +typedef struct { + const char *old; + const char *new; +} xine_config_entry_translation_t; + +void xine_config_set_translation_user (const xine_config_entry_translation_t *) XINE_PROTECTED; + /* * load/save config data from/to afile (e.g. $HOME/.xine/config) */ -- cgit v1.2.3