summaryrefslogtreecommitdiff
path: root/src/core/settings.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-17 05:44:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-17 05:44:45 +0000
commitaac80846b89108414a81773ad4bcdaba4401663d (patch)
tree691e5da6003dcffcb0b67baad80ee4f638fc01a3 /src/core/settings.h
parent78b3fb8d4a0ddb3942b549abca631cb54ecf4d06 (diff)
downloadirssi-aac80846b89108414a81773ad4bcdaba4401663d.zip
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
Diffstat (limited to 'src/core/settings.h')
-rw-r--r--src/core/settings.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/settings.h b/src/core/settings.h
index bd4c5b94..a878fcfb 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -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);