event: Add API to clone events

This will be useful for updating events without having
to keep track of the event states.

Add the new API, and also a unit test.
This commit is contained in:
Georges Basile Stavracas Neto
2020-06-15 13:07:48 -03:00
parent d18441204f
commit dbd81f401c
3 changed files with 49 additions and 0 deletions
+2
View File
@@ -53,6 +53,8 @@ GcalEvent* gcal_event_new (GcalCalendar
ECalComponent *component,
GError **error);
GcalEvent* gcal_event_new_from_event (GcalEvent *self);
gboolean gcal_event_get_all_day (GcalEvent *self);
void gcal_event_set_all_day (GcalEvent *self,