X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fserv_calendar.c;h=de35044412af7d29c44c283cb159b2e309bc9464;hp=2171f381b173aa332c0e1c2fd6f94ee417bd8c7d;hb=01cc19a4c2da27b4db0e980ccd3ca54d834319c8;hpb=03e37ac6a49a6c06b2f1e6aee1c6d1d01836ab07 diff --git a/citadel/serv_calendar.c b/citadel/serv_calendar.c index 2171f381b..de3504441 100644 --- a/citadel/serv_calendar.c +++ b/citadel/serv_calendar.c @@ -22,10 +22,8 @@ #include "citadel.h" #include "server.h" #include "citserver.h" -#include "sysdep_decls.h" #include "support.h" #include "config.h" -#include "serv_extensions.h" #include "user_ops.h" #include "room_ops.h" #include "tools.h" @@ -34,12 +32,15 @@ #include "internet_addressing.h" #include "serv_calendar.h" #include "euidindex.h" +#include "ctdl_module.h" #ifdef CITADEL_WITH_CALENDAR_SERVICE #include #include "ical_dezonify.h" + + struct ical_respond_data { char desired_partnum[SIZ]; icalcomponent *cal; @@ -2136,7 +2137,7 @@ void ical_fixed_output(char *ptr, int len) { /* * Register this module with the Citadel server. */ -char *serv_calendar_init(void) +CTDL_MODULE_INIT(calendar) { #ifdef CITADEL_WITH_CALENDAR_SERVICE CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);