]> Pileus Git - lackey/blobdiff - src/cal.h
Start keeping track of calendars
[lackey] / src / cal.h
index ae41f3b1fc070371f0df3bfae34f334775730a65..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,9 +53,11 @@ typedef struct todo_t {
 } todo_t;
 
 /* Global data */
+extern cal_t   *CALS;
 extern event_t *EVENTS;
 extern todo_t  *TODOS;
 
 /* Calendar functions */
 void cal_init(void);
 void cal_load(year_t year, month_t month, day_t day, int days);
+void cal_config(const char *group, const char *name, const char *key, const char *value);