From 77ef3fe76e4ce4c9a990e8a5904ad2d83420ca02 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Apr 2011 19:40:53 +0200 Subject: 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 --- src/calcurse.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/calcurse.h') 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); -- cgit v1.2.3-54-g00ecf