diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-16 15:20:42 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-19 11:42:35 +0200 |
commit | 9fab24818a119aef08b9726f6c1cd31d5434ce34 (patch) | |
tree | b66a084b605f94ab5e04319c14229fd0ddbc707b /src/calcurse.h | |
parent | 2438470fd3a3c61a0d360ed14d564cb73036b811 (diff) | |
download | 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.h | 11 |
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); |