diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-12-09 20:48:39 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-12-09 20:54:20 +0100 |
commit | 093b28ac398ffdc2733bc6f42fa58d2153576ad9 (patch) | |
tree | df01b2cf12579376fea9b84a8f0e0ccba1f708e8 /src/calcurse.h | |
parent | ef716e4a9267008061f1e6469182a4daaec1c05f (diff) | |
download | calcurse-093b28ac398ffdc2733bc6f42fa58d2153576ad9.zip |
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>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index d79a604..35a64f0 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -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); |