aboutsummaryrefslogtreecommitdiff
path: root/vcal.h
diff options
context:
space:
mode:
Diffstat (limited to 'vcal.h')
-rw-r--r--vcal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcal.h b/vcal.h
index 06ec61f9..e5f4cf7f 100644
--- a/vcal.h
+++ b/vcal.h
@@ -5,6 +5,11 @@
#include "strbuf.h"
+
+/*
+ * It's intentionall that there is no vevent_init. That since
+ * the length of the strings isn't known.
+ */
typedef struct {
string dtstart;
string dtend;
@@ -12,7 +17,18 @@ typedef struct {
string description;
} vevent;
+/*
+ * Deep copy from src -> dest
+ * Requires dest to be initialized beforehand
+ * TODO possibly remove this.
+ */
int copy_vevent(vevent* dest, vevent* src);
+
+/*
+ * Copies src -> dest, initializing all the strings along the way.
+ * Requires dest to be initialized.
+ */
+int vevent_init_copy(vevent* dest, vevent* src);
int free_vevent(vevent* ev);
typedef struct {