4 * This module implements iCalendar object processing and the My Calendar>
5 * room on a Citadel/UX server. It handles iCalendar objects using the
6 * iTIP protocol. See RFCs 2445 and 2446.
11 #include <sys/types.h>
15 #include "serv_ical.h"
18 #include "citserver.h"
19 #include "sysdep_decls.h"
22 #include "dynloader.h"
25 /* Tell clients what level of support to expect */
26 void cmd_ical(char *argbuf)
28 /* argbuf is not used */
29 if (!(CC->logged_in)) {
30 cprintf("%d Not logged in.\n", ERROR+NOT_LOGGED_IN);
34 cprintf("%d I (will) support|ICAL,ITIP\n", OK);
39 int ical_obj_beforesave(struct CtdlMessage *msg)
45 int ical_obj_aftersave(struct CtdlMessage *msg)
51 /* Register this module with the Citadel server. */
52 char *Dynamic_Module_Init(void)
54 CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);
55 CtdlRegisterMessageHook(ical_obj_aftersave, EVT_AFTERSAVE);
56 CtdlRegisterProtoHook(cmd_ical, "ICAL", "Register iCalendar support");