path: root/src/calcurse.h
diff options
authorLars Henriksen <LarsHenriksen@get2net.dk>2019-10-22 07:30:04 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2020-04-28 07:32:44 -0400
commit23eb51456a4a2ece4fd8f3ac4db956773350d5ed (patch)
tree3cc618726bc801b28a320a60474ea210fb32a05a /src/calcurse.h
parentbf3dba2ae2b3c1f0e06191b6878dc7f22570f8f6 (diff)
Refactor edit of exception days
The patch contains no functional changes, but is a necessary precondition for extensions of update_rept() (in ui-day.c) with further recurrence rules. The reason is that recurrence parameters must be treated as a whole: if an edit session is cancelled at any point, no value should change, and all parameters should remain as they were. Hence, the new values must only be set after all of them have been determined. This was not the case for the list of exception days, but as long as it was treated last, it did not matter. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 768993e..a2fea09 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -1033,7 +1033,9 @@ void pcal_export_data(FILE *);
/* recur.c */
extern llist_ts_t recur_alist_p;
extern llist_t recur_elist;
-int recur_update_exc(llist_t *, char *);
+void recur_free_exc_list(llist_t *);
+void recur_exc_dup(llist_t *, llist_t *);
+int recur_str2exc(llist_t *, char *);
char *recur_exc2str(llist_t *);
struct recur_event *recur_event_dup(struct recur_event *);
struct recur_apoint *recur_apoint_dup(struct recur_apoint *);