]> Pileus Git - lackey/blobdiff - src/cal.h
Start keeping track of calendars
[lackey] / src / cal.h
index 48e1af4d20b1b0daf2cb0846c862283f76a9ae41..f3f7a5fe41abef340f219e7ea8fcbb9ee93f4a6b 100644 (file)
--- a/src/cal.h
+++ b/src/cal.h
@@ -22,10 +22,11 @@ typedef enum {
 } status_t;
 
 /* Calendar type */
-typedef struct {
-       char *name;
-       char *desc;
-       void *data;
+typedef struct cal_t {
+       char         *type;
+       char         *name;
+       char         *desc;
+       struct cal_t *next;
 } cal_t;
 
 /* Calendar item types */
@@ -52,6 +53,7 @@ typedef struct todo_t {
 } todo_t;
 
 /* Global data */
+extern cal_t   *CALS;
 extern event_t *EVENTS;
 extern todo_t  *TODOS;