Extract config file handlers into a separate file

We used custom_load_conf() to load the configuration file and
io_save_conf() to save configuration. Move these functions, including
all helpers, to a central location.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-12-09 20:48:39 +01:00
parent ef716e4a92
commit 093b28ac39
9 changed files with 596 additions and 551 deletions

View File

@@ -626,11 +626,15 @@ long calendar_start_of_year (void);
long calendar_end_of_year (void);
char *calendar_get_pom (time_t);
/* config.c */
void config_load (void);
unsigned config_save (void);
/* custom.c */
void custom_init_attr (void);
void custom_apply_attr (WINDOW *, int);
void custom_remove_attr (WINDOW *, int);
void custom_load_conf (void);
void custom_config_bar (void);
void custom_layout_config (void);
void custom_sidebar_config (void);
@@ -688,7 +692,6 @@ int updatestring (WINDOW *, char **, int, int);
unsigned io_fprintln (const char *, const char *, ...);
void io_init (char *, char *);
void io_extract_data (char *, const char *, int);
unsigned io_save_conf (void);
unsigned io_save_apts (void);
unsigned io_save_todo (void);
unsigned io_save_keys (void);