moar skeleton
[citadel.git] / webcit-ng / server / calendar_functions.c
1 // Calendar functions
2 //
3 // Copyright (c) 1996-2023 by the citadel.org team
4 //
5 // This program is open source software.  Use, duplication, or
6 // disclosure are subject to the GNU General Public License v3.
7
8 #include "webcit.h"
9
10
11 // Client is requesting a message list
12 void calendar_msglist(struct http_transaction *h, struct ctdlsession *c, char *range) {
13
14         // Begin by requesting all messages in the room
15         int i = 0;
16         Array *msglist = get_msglist(c, "ALL");
17         if (msglist == NULL) {
18                 do_404(h);
19                 return;
20         }
21
22         for (i = 0; i < array_len(msglist); ++i) {
23                 long m;
24                 memcpy(&m, array_get_element_at(msglist, i), sizeof(long));
25                 syslog(LOG_DEBUG, "FIXME %ld", m);
26         }
27         array_free(msglist);
28
29         // FIXME we still fail because we aren't finished yet
30         do_404(h);
31 }