1 #include <libical/ical.h>
6 #include "calendarfunc.h"
10 time_t modtime
; /* modified time of icalendar file */
11 struct calobj
* calRoot
; /* 1st element in list of calendar obj*/
12 int xr
, yr
; /*evil hack for moving dayview window*/
13 int datetype
[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn,
14 [jdn%32][1] stores jdn. */
16 struct icaltimetype start
;
17 struct icaltimetype end
;
22 struct calobj
* exclude
;
25 int get_datetype(int day
);
27 void showDay(struct icaltimetype dt
);
28 void destroy (GtkWidget
* widget
, gpointer data
);
29 int dayevents(struct icaltimetype dt
, GtkWidget
*table
);
32 void addCalObj(struct icaltimetype start
, struct icaltimetype end
,
33 int type
, const char *text
, icalcomponent
* d
);
34 int getDayType(struct icaltimetype dt
);
35 int eventOnDay(struct icaltimetype dt
, struct calobj
* it
);
36 int calcDayType(struct icaltimetype dt
);
37 char* read_stream(char *s
, size_t size
, void *d
);
38 void checkicalversion();