aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/libicalvcal/icalvcal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libical/src/libicalvcal/icalvcal.h')
-rw-r--r--libical/src/libicalvcal/icalvcal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libical/src/libicalvcal/icalvcal.h b/libical/src/libicalvcal/icalvcal.h
index f2316c2d0f..96e94b9f2e 100644
--- a/libical/src/libicalvcal/icalvcal.h
+++ b/libical/src/libicalvcal/icalvcal.h
@@ -29,10 +29,25 @@
#include "ical.h"
#include "vcc.h"
+/* These are used as default values if the values are missing in the vCalendar
+ file. Gnome Calendar, for example, does not save the URL of the audio alarm,
+ so we have to add a value here to make a valid iCalendar object. */
+typedef struct _icalvcal_defaults icalvcal_defaults;
+struct _icalvcal_defaults {
+ char *alarm_audio_url;
+ char *alarm_audio_fmttype;
+ char *alarm_description;
+};
+
+
/* Convert a vObject into an icalcomponent */
icalcomponent* icalvcal_convert(VObject *object);
+icalcomponent* icalvcal_convert_with_defaults (VObject *object,
+ icalvcal_defaults *defaults);
+
+
#endif /* !ICALVCAL_H */