summaryrefslogtreecommitdiff
path: root/src/libical/icalcomponent.c
diff options
context:
space:
mode:
authorKen Murchison <murch@andrew.cmu.edu>2016-09-03 17:00:40 -0400
committerKen Murchison <murch@andrew.cmu.edu>2017-04-28 13:01:02 -0400
commitce3459105fd4355815d8436fb5d89b0bdaa71d2a (patch)
tree32c99d92e723446570c6501c024b67ffc807c84c /src/libical/icalcomponent.c
parent330c6a951ce90c232605ecd669115823e79c4dca (diff)
downloadlibical-git-ce3459105fd4355815d8436fb5d89b0bdaa71d2a.tar.gz
Initial VPATCH implementation
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.
*/