aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-16 15:20:42 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-19 11:42:35 +0200
commit9fab24818a119aef08b9726f6c1cd31d5434ce34 (patch)
treeb66a084b605f94ab5e04319c14229fd0ddbc707b /src/calcurse.h
parent2438470fd3a3c61a0d360ed14d564cb73036b811 (diff)
downloadcalcurse-9fab24818a119aef08b9726f6c1cd31d5434ce34.tar.gz
calcurse-9fab24818a119aef08b9726f6c1cd31d5434ce34.zip
Use generic lists for recurring apointments and events.
Use them instead of "recur_apoint_list" and "next" pointers in "recur_event" type variables. Includes some code simplifications and cleanups. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 4981a59..a2b7bcc 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -334,15 +334,8 @@ struct recur_apoint {
char *note; /* note attached to appointment */
};
-/* Recurrent appointments are stored in a linked-list. */
-struct recur_apoint_list {
- struct recur_apoint *root;
- pthread_mutex_t mutex;
-};
-
/* Reccurent event definition. */
struct recur_event {
- struct recur_event *next;
struct rpt *rpt; /* information about repetition */
struct days *exc; /* days when the item should not be repeated */
int id; /* event type */
@@ -768,8 +761,8 @@ int notify_same_recur_item (struct recur_apoint *);
void notify_config_bar (void);
/* recur.c */
-extern struct recur_apoint_list *recur_alist_p;
-extern struct recur_event *recur_elist;
+extern llist_ts_t recur_alist_p;
+extern llist_t recur_elist;
void recur_event_free_bkp (enum eraseflg);
void recur_apoint_free_bkp (enum eraseflg);
void recur_apoint_llist_init (void);