XML_Parse(xp, h->request_body, h->request_body_length, 1);
XML_ParserFree(xp);
- if (crp.Chardata != NULL) { // Discard any trailing chardata ... normally nothing here
+ if (crp.Chardata != NULL) { // Discard any trailing chardata ... normally nothing here
FreeStrBuf(&crp.Chardata);
crp.Chardata = NULL;
}
StrBuf *one_item = fetch_ical(c, m);
icalcomponent *cal = icalcomponent_new_from_string(ChrPtr(one_item));
- // this is a horrible temporary hack to output every item
- int qualify = 1;
+ // qualify will be set to nonzero if this calendar item is a match for the QUERY.
+ int qualify = 0;
+ // this is a horrible temporary hack to output every item (for now)
+ qualify = 1;
+
+ // Did this calendar item match the query? If so, output it.
if (qualify) {
+ // FIXME need to populate the Href instead of NULL
cal_multiget_out(m, NULL, one_item, ReportOut);
}