]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/caldav_reports.c
Starting to bring over calendar server code from webcit-classic.
[citadel.git] / webcit-ng / server / caldav_reports.c
index 9bcca613fd9873c9f4a69e28f35d41dbb0138d61..7fe12ff3ae2b38c0a6245f5d45fe4023da6fc8da 100644 (file)
@@ -1,8 +1,7 @@
-//
 // This file contains functions which handle all of the CalDAV "REPORT" queries
 // specified in RFC4791 section 7.
 //
-// Copyright (c) 2022 by the citadel.org team
+// Copyright (c) 2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or
 // disclosure are subject to the GNU General Public License v3.
@@ -102,7 +101,7 @@ void caldav_xml_chardata(void *data, const XML_Char * s, int len) {
 //
 // NOTE: this function expects that "MSGP text/calendar" was issued at the beginning
 // of a REPORT operation to set our preferred MIME type to calendar data.
-StrBuf *fetch_ical(struct ctdlsession * c, long msgnum) {
+StrBuf *fetch_ical(struct ctdlsession *c, long msgnum) {
        char buf[1024];
        StrBuf *Buf = NULL;
 
@@ -130,7 +129,7 @@ StrBuf *fetch_ical(struct ctdlsession * c, long msgnum) {
 // webcit[13039]: room=0000000001.Calendar
 // webcit[13039]: node=uncnsrd
 // webcit[13039]: hnod=Uncensored
-// webcit[13039]: exti=040000008200E00074C5B7101A82E0080000000080C728F83E84C801000000000000000010000000E857E0DC57F53947ADF0BB91EE3A502F
+// webcit[13039]: exti=040000E00074C5B7101A82E0080000000080C728F83E84C801000000000000000010000000E857E0DC57F53947ADF0BB91EE3A502F
 // webcit[13039]: subj==?UTF-8?B?V2VzbGV5J3MgYmlydGhkYXkgcGFydHk=
 // webcit[13039]: ?=
 // webcit[13039]: part=||1||text/calendar|1127||
@@ -146,7 +145,7 @@ StrBuf *fetch_ical(struct ctdlsession * c, long msgnum) {
 
 // Called by caldav_report() to output a single item.
 // Our policy is to throw away the list of properties the client asked for, and just send everything.
-void caldav_response(struct http_transaction *h, struct ctdlsession *c, StrBuf * ReportOut, StrBuf * ThisHref) {
+void caldav_response(struct http_transaction *h, struct ctdlsession *c, StrBuf *ReportOut, StrBuf *ThisHref) {
        long msgnum;
        StrBuf *Caldata = NULL;
        char *euid;