- cal_process_subcomponent(c);
- ++num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VEVENTs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VEVENT_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VEVENT_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VTODOs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VTODO_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VTODO_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VJOURNALs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VJOURNAL_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VJOURNAL_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VCALENDARs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VCALENDAR_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VCALENDAR_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VFREEBUSYs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VFREEBUSY_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VFREEBUSY_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VALARMs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VALARM_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VALARM_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VTIMEZONEs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VTIMEZONE_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VTIMEZONE_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VSCHEDULEs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VSCHEDULE_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VSCHEDULE_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VQUERYs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VQUERY_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VQUERY_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VCARs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VCAR_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VCAR_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- /* Iterate through all subcomponents */
- wprintf("Iterating through VCOMMANDs<BR>\n");
- for (c = icalcomponent_get_first_component(cal, ICAL_VCOMMAND_COMPONENT);
- (c != 0);
- c = icalcomponent_get_next_component(cal, ICAL_VCOMMAND_COMPONENT)) {
- cal_process_subcomponent(c);
- --num_subcomponents;
- }
-
- if (num_subcomponents != 0) {
- wprintf("Warning: %d subcomponents unhandled<BR>\n",
- num_subcomponents);