diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-07-31 11:59:10 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-07-31 11:59:10 +0000 |
commit | 596c9dff3806272f1f28b7a4105ca90a027df7d4 (patch) | |
tree | a6af17de4c6e3dae3828dbf27a0ee4f70aece520 /src/xine-engine/configfile.h | |
parent | 3e2741738a152d6504d05b8d1cb74d2d92f7e948 (diff) | |
download | xine-lib-596c9dff3806272f1f28b7a4105ca90a027df7d4.tar.gz xine-lib-596c9dff3806272f1f28b7a4105ca90a027df7d4.tar.bz2 |
introduce config file versioning
A new entry in the config file ".version:" stores the current version of the
config file. The '.' at the beginning of ".version" shows that this is a
somewhat hidden (read: internal) entry and it makes the line easy to spot and
prevents clashes with regular config entries.
The first use of this is to reset all decoder priorities to 0 (= use default)
so that we hopefully won't have problems like the qtv decoder clash any more.
CVS patchset: 5226
CVS date: 2003/07/31 11:59:10
Diffstat (limited to 'src/xine-engine/configfile.h')
-rw-r--r-- | src/xine-engine/configfile.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/xine-engine/configfile.h b/src/xine-engine/configfile.h index 6889a8987..30514e2b9 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.23 2003/06/27 13:40:51 mroi Exp $ + * $Id: configfile.h,v 1.24 2003/07/31 11:59:10 mroi Exp $ * * config file management * @@ -39,6 +39,8 @@ extern "C" { # include <xine.h> #endif +#define CONFIG_FILE_VERSION 1 + typedef struct cfg_entry_s cfg_entry_t; typedef struct config_values_s config_values_t; @@ -186,7 +188,12 @@ struct config_values_s { /* * mutex for modification to the config */ - pthread_mutex_t config_lock; + pthread_mutex_t config_lock; + + /* + * current config files version number + */ + int current_version; }; /* @@ -195,7 +202,7 @@ struct config_values_s { config_values_t *xine_config_init (void); /* - * hack: intepret "opt:"-style mrls for config value changes + * interpret stream_setup part of mrls for config value changes */ int xine_config_change_opt(config_values_t *config, const char *opt) ; |