summary refs log tree commit diff stats
path: root/src/common/cfgfiles.h
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-05-13 01:58:08 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-05-13 01:58:08 +0100
commitd9d05e83ba9975959607302c45a631ee80a2d21e (patch)
treebc3c00f46be10abe25e34033794a3b59a34fc977 /src/common/cfgfiles.h
parent61ed0829bd57fc60cc7e08538f20b8277c74f90c (diff)
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).
Diffstat (limited to 'src/common/cfgfiles.h')
-rw-r--r--src/common/cfgfiles.h6
1 files changed, 5 insertions, 1 deletions
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);