Search
lxdream.org :: lxdream/src/config.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/config.h
changeset 724:f2bc1c7cca14
prev561:533f6b478071
next736:a02d1475ccfd
author nkeynes
date Sun Jul 06 03:17:32 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add descriptive (localized) label to config entries for UI use
file annotate diff log raw
1.1 --- a/src/config.h Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/config.h Sun Jul 06 03:17:32 2008 +0000
1.3 @@ -20,6 +20,7 @@
1.4 #define lxdream_config_H 1
1.5
1.6 #include <glib/gtypes.h>
1.7 +#include <glib/gi18n.h>
1.8
1.9 #define CONFIG_TYPE_NONE 0
1.10 #define CONFIG_TYPE_FILE 1
1.11 @@ -30,6 +31,7 @@
1.12
1.13 typedef struct lxdream_config_entry {
1.14 const gchar *key;
1.15 + const gchar *label; // i18n
1.16 const int type;
1.17 const gchar *default_value;
1.18 gchar *value;
1.19 @@ -47,11 +49,13 @@
1.20 #define CONFIG_BOOTSTRAP 4
1.21 #define CONFIG_GDROM 5
1.22 #define CONFIG_RECENT 6
1.23 +#define CONFIG_KEY_MAX CONFIG_RECENT
1.24
1.25 extern struct lxdream_config_group lxdream_config_root[];
1.26
1.27 /* Global config values */
1.28 const gchar *lxdream_get_config_value( int key );
1.29 +const lxdream_config_entry_t lxdream_get_config_entry( int key );
1.30
1.31 void lxdream_set_global_config_value( int key, const gchar *value );
1.32 void lxdream_set_config_value( lxdream_config_entry_t entry, const gchar *value );
.