X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fcal.h;h=f3f7a5fe41abef340f219e7ea8fcbb9ee93f4a6b;hb=b90716f36fac6e8c16dabd981cd47eeb9a8ec4f1;hp=ae41f3b1fc070371f0df3bfae34f334775730a65;hpb=8565e093588ec2a665a430c7be4f4b440537df84;p=lackey diff --git a/src/cal.h b/src/cal.h index ae41f3b..f3f7a5f 100644 --- 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);