} cal_t;
/* Event types */
-typedef struct {
- year_t year;
- month_t month;
- day_t day;
- hour_t hour;
- min_t min;
-} datetime_t;
-
typedef struct event_t {
const cal_t *cal;
- datetime_t start;
- datetime_t end;
const char *name;
const char *desc;
+ const char *loc;
+ const char *cat;
+ date_t start;
+ date_t end;
struct event_t *next;
} event_t;
/* Calendar implementation functions */
event_t *dummy_get(cal_t *cal, year_t year, month_t month, day_t day, int days);
+event_t *ical_get(cal_t *cal, year_t year, month_t month, day_t day, int days);
+
+/* Test fuctions */
+void ical_test(void);