aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2018-08-28 21:11:06 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-10-21 20:01:34 +0200
commit39ab4665e6bb13372da24b86f32cc50fff8c0e9f (patch)
treeddb070a2d19be7c141b4a3c56fa7bebc41320513 /src/calcurse.h
parent8b39637a628cba915e81f836aad74ec05bf0c285 (diff)
downloadcalcurse-39ab4665e6bb13372da24b86f32cc50fff8c0e9f.tar.gz
calcurse-39ab4665e6bb13372da24b86f32cc50fff8c0e9f.zip
Data save and removal of the progress bar
The function io_save_cal() saves apts, todos, configuration data and key bindings. The configuration and key files do not belong with the two data files, but the progress bar function assumes that all four files are saved in a fixed sequence. Since it is used nowhere else and contains unused parts, the function has been removed. A return code for file access error is introduced, and the EXIT macro moved to the command level in calcurse.c. Save of configuration and key data were already moved to the configuration menu in commit 0124618, A save refinement: no action if everything is unchanged. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index bec2a93..17c45f8 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -659,7 +659,8 @@ enum {
IO_SAVE_CTINUE,
IO_SAVE_RELOAD,
IO_SAVE_CANCEL,
- IO_SAVE_NOOP
+ IO_SAVE_NOOP,
+ IO_SAVE_ERROR
};
/* Return codes for the io_reload_data() function. */
@@ -727,12 +728,6 @@ enum export_type {
IO_EXPORT_NBTYPES
};
-/* To customize the display when saving data. */
-enum save_display {
- IO_SAVE_DISPLAY_BAR,
- IO_SAVE_DISPLAY_NONE
-};
-
/* apoint.c */
extern llist_ts_t alist_p;
void apoint_free_bkp(void);
@@ -867,7 +862,7 @@ unsigned io_save_apts(const char *);
void io_dump_todo(const char *);
unsigned io_save_todo(const char *);
unsigned io_save_keys(void);
-int io_save_cal(enum save_display);
+int io_save_cal(void);
void io_load_app(struct item_filter *);
void io_load_todo(struct item_filter *);
int io_load_data(struct item_filter *, int);