From 649ade4fb2c588355e89aa060b4d5954f77579e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 17 Jan 2019 00:20:06 +0100 Subject: Further work. --- vcal.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vcal.h (limited to 'vcal.h') diff --git a/vcal.h b/vcal.h new file mode 100644 index 00000000..06ec61f9 --- /dev/null +++ b/vcal.h @@ -0,0 +1,29 @@ +#ifndef VCAL_H +#define VCAL_H + +#include + +#include "strbuf.h" + +typedef struct { + string dtstart; + string dtend; + string summary; + string description; +} vevent; + +int copy_vevent(vevent* dest, vevent* src); +int free_vevent(vevent* ev); + +typedef struct { + size_t n_events; + size_t alloc; + vevent* events; +} vcalendar; + +int init_vcalendar(vcalendar* cal); +int free_vcalendar(vcalendar* cal); + +int push_event(vcalendar* cal, vevent* ev); + +#endif /* VCAL_H */ -- cgit v1.2.3