summaryrefslogtreecommitdiff
path: root/pith/ical.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2017-12-10 09:24:34 -0700
committerEduardo Chappa <chappa@washington.edu>2017-12-10 09:24:34 -0700
commit480bf4063f7d31b7d2c9ec8edd9fc4280ffb39ee (patch)
tree542f1b86a451bc33e6320dce3ccfed4ea57580a3 /pith/ical.h
parente0ebb8756c000f325a14469eec065654882bd0ac (diff)
downloadalpine-480bf4063f7d31b7d2c9ec8edd9fc4280ffb39ee.tar.xz
Initial commit for branch ical
Diffstat (limited to 'pith/ical.h')
-rw-r--r--pith/ical.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/pith/ical.h b/pith/ical.h
new file mode 100644
index 00000000..9da4516f
--- /dev/null
+++ b/pith/ical.h
@@ -0,0 +1,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 */