summaryrefslogtreecommitdiff
path: root/pith/ical.h
blob: 9da4516f3819c5a7168942e8d34d2e365ea68350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef ICAL_INCLUDED
#define ICAL_INCLUDED

#include "../pith/icaltype.h"

void ical_free_vcalendar(void **);
void ical_free_duration(ICAL_DURATION_S **ic_d);
int  ical_first_of_month(int, int);      /* args: month, year - in that order */
int  ical_day_of_week(struct tm);        /* args: a time structure */
int  ical_parse_date(char *, struct tm *);
int  ical_parse_duration(char *, ICAL_DURATION_S *);
VEVENT_SUMMARY_S *ical_vevent_summary(VCALENDAR_S *);
void free_vevent_summary(VEVENT_SUMMARY_S **);

VCALENDAR_S *ical_parse_text(char *);           /* this is the entry point */

#endif /* ifndef ICAL_INCLUDED */