Search
lxdream.org :: lxdream/src/config.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/config.h
changeset 1034:7044e01148f0
prev1024:c67f2d61ab97
next1036:af7b0c5905dd
author nkeynes
date Wed Jun 24 02:41:12 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Add initial VMU support
file annotate diff log raw
1.1 --- a/src/config.h Sat Jun 13 00:50:48 2009 +0000
1.2 +++ b/src/config.h Wed Jun 24 02:41:12 2009 +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/glist.h>
1.8 #include "gettext.h"
1.9
1.10 #ifdef __cplusplus
1.11 @@ -30,6 +31,7 @@
1.12 #define CONFIG_TYPE_FILE 1
1.13 #define CONFIG_TYPE_PATH 2
1.14 #define CONFIG_TYPE_KEY 3
1.15 +#define CONFIG_TYPE_FILELIST 4
1.16
1.17 #define DEFAULT_CONFIG_FILENAME "lxdreamrc"
1.18
1.19 @@ -50,10 +52,12 @@
1.20 #define CONFIG_FLASH_PATH 1
1.21 #define CONFIG_DEFAULT_PATH 2
1.22 #define CONFIG_SAVE_PATH 3
1.23 -#define CONFIG_BOOTSTRAP 4
1.24 -#define CONFIG_GDROM 5
1.25 -#define CONFIG_RECENT 6
1.26 -#define CONFIG_KEY_MAX CONFIG_RECENT
1.27 +#define CONFIG_VMU_PATH 4
1.28 +#define CONFIG_BOOTSTRAP 5
1.29 +#define CONFIG_GDROM 6
1.30 +#define CONFIG_RECENT 7
1.31 +#define CONFIG_VMU 8
1.32 +#define CONFIG_KEY_MAX CONFIG_VMU
1.33
1.34 extern struct lxdream_config_group lxdream_config_root[];
1.35
1.36 @@ -67,6 +71,16 @@
1.37 void lxdream_copy_config_list( lxdream_config_entry_t dest, lxdream_config_entry_t src );
1.38
1.39 /**
1.40 + * Construct a list of strings for the given config key - The caller is
1.41 + * responsible for freeing the list and its values.
1.42 + */
1.43 +GList *lxdream_get_global_config_list_value( int key );
1.44 +
1.45 +/**
1.46 + * Set a config key based on a list of strings.
1.47 + */
1.48 +void lxdream_set_global_config_list_value( int key, const GList *list );
1.49 +/**
1.50 * Search the standard locations for the configuration file:
1.51 * $HOME/.lxdreamrc
1.52 * $CWD/lxdreamrc
.