diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-12 19:40:53 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-19 11:42:33 +0200 |
commit | 77ef3fe76e4ce4c9a990e8a5904ad2d83420ca02 (patch) | |
tree | df93d5ce8ab8f50e05a335839c6578f228783528 /src/calcurse.h | |
parent | d668963e2056027526374098efe2869a0d389b92 (diff) | |
download | calcurse-77ef3fe76e4ce4c9a990e8a5904ad2d83420ca02.zip |
Use generic lists for appointments.
Use the new generic list implementation instead of "apoint_list"
everywhere. Simplify stuff and drop unused variables as well.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index f6f5898..31a2933 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -269,13 +269,6 @@ struct apoint char *note; }; -/* Appointments are stored in a linked-list. */ -struct apoint_list -{ - struct apoint *root; - pthread_mutex_t mutex; -}; - /* Event definition. */ struct event { struct event *next; @@ -564,8 +557,9 @@ enum save_display { }; /* apoint.c */ -extern struct apoint_list *alist_p; +extern llist_ts_t alist_p; void apoint_free_bkp (enum eraseflg); +void apoint_free (struct apoint *); void apoint_llist_init (void); void apoint_llist_free (void); void apoint_hilt_set (int); |