mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Settings are now stored in module-specific blocks. Irssi complains
about all unknown settings that are found inside those blocks. Left backwards compatibility kludge which should be removed in 0.7.98. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
78b3fb8d4a
commit
aac80846b8
9 changed files with 196 additions and 48 deletions
|
|
@ -62,6 +62,10 @@ void settings_remove_module(const char *module);
|
|||
#define settings_add_bool(section, key, def) \
|
||||
settings_add_bool_module(MODULE_NAME, section, key, def)
|
||||
|
||||
void settings_set_str(const char *key, const char *value);
|
||||
void settings_set_int(const char *key, int value);
|
||||
void settings_set_bool(const char *key, int value);
|
||||
|
||||
/* Get the type (SETTING_TYPE_xxx) of `key' */
|
||||
int settings_get_type(const char *key);
|
||||
/* Get all settings sorted by section. Free the result with g_slist_free() */
|
||||
|
|
@ -69,6 +73,11 @@ GSList *settings_get_sorted(void);
|
|||
/* Get the record of the setting */
|
||||
SETTINGS_REC *settings_get_record(const char *key);
|
||||
|
||||
/* verify that all settings in config file for `module' are actually found
|
||||
from /SET list */
|
||||
void settings_check_module(const char *module);
|
||||
#define settings_check() settings_check_module(MODULE_NAME)
|
||||
|
||||
/* if `fname' is NULL, the default is used */
|
||||
int settings_reread(const char *fname);
|
||||
int settings_save(const char *fname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue