} 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 */
} 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);