summaryrefslogtreecommitdiff
path: root/src/libical/icalcomponent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical/icalcomponent.c')
-rw-r--r--src/libical/icalcomponent.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libical/icalcomponent.c b/src/libical/icalcomponent.c
index 6439f6f4..a0dbf7f0 100644
--- a/src/libical/icalcomponent.c
+++ b/src/libical/icalcomponent.c
@@ -605,6 +605,7 @@ icalcomponent *icalcomponent_get_first_real_component(icalcomponent *c)
kind == ICAL_VFREEBUSY_COMPONENT ||
kind == ICAL_VAVAILABILITY_COMPONENT ||
kind == ICAL_VPOLL_COMPONENT ||
+ kind == ICAL_VPATCH_COMPONENT ||
kind == ICAL_VQUERY_COMPONENT || kind == ICAL_VAGENDA_COMPONENT) {
return comp;
}
@@ -1189,6 +1190,10 @@ static const struct icalcomponent_kind_map component_map[] = {
{ICAL_VVOTER_COMPONENT, "VVOTER"},
{ICAL_XVOTE_COMPONENT, "VOTE"},
+ /* VPATCH components */
+ {ICAL_VPATCH_COMPONENT, "VPATCH"},
+ {ICAL_XPATCH_COMPONENT, "PATCH"},
+
/* End of list */
{ICAL_NO_COMPONENT, ""},
};
@@ -1993,6 +1998,16 @@ icalcomponent *icalcomponent_new_xvote(void)
return icalcomponent_new(ICAL_XVOTE_COMPONENT);
}
+icalcomponent *icalcomponent_new_vpatch(void)
+{
+ return icalcomponent_new(ICAL_VPATCH_COMPONENT);
+}
+
+icalcomponent *icalcomponent_new_xpatch(void)
+{
+ return icalcomponent_new(ICAL_XPATCH_COMPONENT);
+}
+
/*
* Timezone stuff.
*/