]> Pileus Git - lackey/blobdiff - src/cal.h
Make events and todos doubly linked
[lackey] / src / cal.h
index 37412211115d0c072e675b25014ad39b05a70d01..72bcd955db4825844db259cda32196608f9bb8a6 100644 (file)
--- a/src/cal.h
+++ b/src/cal.h
@@ -39,6 +39,7 @@ typedef struct event_t {
        date_t          end;
        const cal_t    *cal;
        struct event_t *next;
+       struct event_t *prev;
 } event_t;
 
 typedef struct todo_t {
@@ -50,6 +51,7 @@ typedef struct todo_t {
        date_t         due;
        cal_t         *cal;
        struct todo_t *next;
+       struct todo_t *prev;
 } todo_t;
 
 /* Global data */