From d9d05e83ba9975959607302c45a631ee80a2d21e Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Mon, 13 May 2013 01:58:08 +0100 Subject: Restructured a fair bit of cfgfiles.c. Besides making the code cleaner this allows for better error handling (in fact the error message of check_prefs_dir () whould make hexchat abort). --- src/common/cfgfiles.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/common/cfgfiles.h') diff --git a/src/common/cfgfiles.h b/src/common/cfgfiles.h index 103466f3..3a59d26d 100644 --- a/src/common/cfgfiles.h +++ b/src/common/cfgfiles.h @@ -34,7 +34,11 @@ int cfg_put_int (int fh, int value, char *var); int cfg_get_color (char *cfg, char *var, int *r, int *g, int *b); int cfg_put_color (int fh, int r, int g, int b, char *var); char *get_xdir (void); -void load_config (void); +int check_config_dir (void); +void load_default_config (void); +int make_config_dirs (void); +int make_dcc_dirs (void); +int load_config (void); int save_config (void); void list_free (GSList ** list); void list_loadconf (char *file, GSList ** list, char *defaultconf); -- cgit 1.4.1