summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-03-22 11:18:59 +0100
committerMilan Crha <mcrha@redhat.com>2019-03-22 11:18:59 +0100
commit03cf85491884d5d5b9d0cb01d6cc929d4e21f7d3 (patch)
tree959afaa091014250f765c37658bc527109fb495e
parent2ca5cb54ea4c74ddc38f439bb626fe0e00bd768a (diff)
downloadlibical-git-03cf85491884d5d5b9d0cb01d6cc929d4e21f7d3.tar.gz
[libical-glib] Rename bare structure wrapper objects
The object names contained a 'Type' word, which is redundant for GLib objects, thus that had been removed together with the related API changes.
-rw-r--r--doc/reference/libical-glib/libical-glib-docs.sgml.in14
-rw-r--r--src/libical-glib/CMakeLists.txt14
-rw-r--r--src/libical-glib/api/i-cal-component.xml4
-rw-r--r--src/libical-glib/api/i-cal-datetimeperiod-type.xml60
-rw-r--r--src/libical-glib/api/i-cal-datetimeperiod.xml60
-rw-r--r--src/libical-glib/api/i-cal-derived-property.xml54
-rw-r--r--src/libical-glib/api/i-cal-derived-value.xml42
-rw-r--r--src/libical-glib/api/i-cal-duration-type.xml139
-rw-r--r--src/libical-glib/api/i-cal-duration.xml139
-rw-r--r--src/libical-glib/api/i-cal-geo-type.xml79
-rw-r--r--src/libical-glib/api/i-cal-geo.xml79
-rw-r--r--src/libical-glib/api/i-cal-period-type.xml107
-rw-r--r--src/libical-glib/api/i-cal-period.xml107
-rw-r--r--src/libical-glib/api/i-cal-recur-iterator.xml2
-rw-r--r--src/libical-glib/api/i-cal-recur.xml12
-rw-r--r--src/libical-glib/api/i-cal-recurrence.xml (renamed from src/libical-glib/api/i-cal-recurrence-type.xml)518
-rw-r--r--src/libical-glib/api/i-cal-reqstat.xml (renamed from src/libical-glib/api/i-cal-reqstat-type.xml)52
-rw-r--r--src/libical-glib/api/i-cal-time.xml4
-rw-r--r--src/libical-glib/api/i-cal-timezone-phase.xml12
-rw-r--r--src/libical-glib/api/i-cal-trigger-type.xml67
-rw-r--r--src/libical-glib/api/i-cal-trigger.xml67
-rw-r--r--src/test/libical-glib/CMakeLists.txt6
-rwxr-xr-xsrc/test/libical-glib/duration.py (renamed from src/test/libical-glib/duration-type.py)10
-rwxr-xr-xsrc/test/libical-glib/misc.py2
-rwxr-xr-xsrc/test/libical-glib/period.py (renamed from src/test/libical-glib/period-type.py)6
-rwxr-xr-xsrc/test/libical-glib/recurrence.py (renamed from src/test/libical-glib/recurrence-type.py)146
26 files changed, 901 insertions, 901 deletions
diff --git a/doc/reference/libical-glib/libical-glib-docs.sgml.in b/doc/reference/libical-glib/libical-glib-docs.sgml.in
index e7339918..fb111dff 100644
--- a/doc/reference/libical-glib/libical-glib-docs.sgml.in
+++ b/doc/reference/libical-glib/libical-glib-docs.sgml.in
@@ -18,33 +18,33 @@
<xi:include href="xml/i-cal-attach.xml"/>
<xi:include href="xml/i-cal-comp-iter.xml"/>
<xi:include href="xml/i-cal-component.xml"/>
- <xi:include href="xml/i-cal-datetimeperiod-type.xml"/>
+ <xi:include href="xml/i-cal-datetimeperiod.xml"/>
<xi:include href="xml/i-cal-derived-parameter.xml"/>
<xi:include href="xml/i-cal-derived-property.xml"/>
<xi:include href="xml/i-cal-derived-value.xml"/>
- <xi:include href="xml/i-cal-duration-type.xml"/>
+ <xi:include href="xml/i-cal-duration.xml"/>
<xi:include href="xml/i-cal-enums.xml"/>
<xi:include href="xml/i-cal-error.xml"/>
- <xi:include href="xml/i-cal-geo-type.xml"/>
+ <xi:include href="xml/i-cal-geo.xml"/>
<xi:include href="xml/i-cal-langbind.xml"/>
<xi:include href="xml/i-cal-memory.xml"/>
<xi:include href="xml/i-cal-mime.xml"/>
<xi:include href="xml/i-cal-object.xml"/>
<xi:include href="xml/i-cal-parameter.xml"/>
<xi:include href="xml/i-cal-parser.xml"/>
- <xi:include href="xml/i-cal-period-type.xml"/>
+ <xi:include href="xml/i-cal-period.xml"/>
<xi:include href="xml/i-cal-property.xml"/>
<xi:include href="xml/i-cal-recur.xml"/>
<xi:include href="xml/i-cal-recur-iterator.xml"/>
- <xi:include href="xml/i-cal-recurrence-type.xml"/>
- <xi:include href="xml/i-cal-reqstat-type.xml"/>
+ <xi:include href="xml/i-cal-recurrence.xml"/>
+ <xi:include href="xml/i-cal-reqstat.xml"/>
<xi:include href="xml/i-cal-restriction.xml"/>
<xi:include href="xml/i-cal-time.xml"/>
<xi:include href="xml/i-cal-time-span.xml"/>
<xi:include href="xml/i-cal-timezone.xml"/>
<xi:include href="xml/i-cal-timezone-phase.xml"/>
<xi:include href="xml/i-cal-timezonetype.xml"/>
- <xi:include href="xml/i-cal-trigger-type.xml"/>
+ <xi:include href="xml/i-cal-trigger.xml"/>
<xi:include href="xml/i-cal-unknowntokenhandling.xml"/>
<xi:include href="xml/i-cal-value.xml"/>
diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt
index e446ee81..4980162e 100644
--- a/src/libical-glib/CMakeLists.txt
+++ b/src/libical-glib/CMakeLists.txt
@@ -16,32 +16,32 @@ list(APPEND API_FILES
api/i-cal-attach.xml
api/i-cal-comp-iter.xml
api/i-cal-component.xml
- api/i-cal-datetimeperiod-type.xml
+ api/i-cal-datetimeperiod.xml
api/i-cal-derived-parameter.xml
api/i-cal-derived-property.xml
api/i-cal-derived-value.xml
- api/i-cal-duration-type.xml
+ api/i-cal-duration.xml
api/i-cal-enums.xml
api/i-cal-error.xml
- api/i-cal-geo-type.xml
+ api/i-cal-geo.xml
api/i-cal-langbind.xml
api/i-cal-memory.xml
api/i-cal-mime.xml
api/i-cal-parameter.xml
api/i-cal-parser.xml
- api/i-cal-period-type.xml
+ api/i-cal-period.xml
api/i-cal-property.xml
api/i-cal-recur-iterator.xml
- api/i-cal-recurrence-type.xml
+ api/i-cal-recurrence.xml
api/i-cal-recur.xml
- api/i-cal-reqstat-type.xml
+ api/i-cal-reqstat.xml
api/i-cal-restriction.xml
api/i-cal-time-span.xml
api/i-cal-time.xml
api/i-cal-timezone-phase.xml
api/i-cal-timezonetype.xml
api/i-cal-timezone.xml
- api/i-cal-trigger-type.xml
+ api/i-cal-trigger.xml
api/i-cal-unknowntokenhandling.xml
api/i-cal-value.xml
)
diff --git a/src/libical-glib/api/i-cal-component.xml b/src/libical-glib/api/i-cal-component.xml
index 0e96d8bc..e0975435 100644
--- a/src/libical-glib/api/i-cal-component.xml
+++ b/src/libical-glib/api/i-cal-component.xml
@@ -276,12 +276,12 @@
</method>
<method name="i_cal_component_set_duration" corresponds="icalcomponent_set_duration" kind="set" since="1.0">
<parameter type="ICalComponent *" name="comp" comment="A #ICalComponent."/>
- <parameter type="ICalDurationType *" name="v" comment="A #ICalDurationType."/>
+ <parameter type="ICalDuration *" name="v" comment="A #ICalDuration."/>
<comment xml:space="preserve">Set the duration of the #ICalComponent.</comment>
</method>
<method name="i_cal_component_get_duration" corresponds="icalcomponent_get_duration" kind="get" since="1.0">
<parameter type="ICalComponent *" name="comp" comment="A #ICalComponent."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="A #ICalDurationType."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="An #ICalDuration."/>
<comment xml:space="preserve">Get the duration of the #ICalComponent.</comment>
</method>
<method name="i_cal_component_set_method" corresponds="icalcomponent_set_method" kind="set" since="1.0">
diff --git a/src/libical-glib/api/i-cal-datetimeperiod-type.xml b/src/libical-glib/api/i-cal-datetimeperiod-type.xml
deleted file mode 100644
index 9d786836..00000000
--- a/src/libical-glib/api/i-cal-datetimeperiod-type.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<!--
- Copyright (C) 2015 William Yu <williamyu@gnome.org>
-
- This library is free software: you can redistribute it and/or modify it
- under the terms of version 2.1. of the GNU Lesser General Public License
- as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
--->
-<structure namespace="ICal" name="DatetimeperiodType" native="struct icaldatetimeperiodtype" is_bare="true" default_native="i_cal_datetimeperiod_type_new_default ()" includes="libical-glib/i-cal-time.h, libical-glib/i-cal-period-type.h">
- <method name="i_cal_datetimeperiod_type_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
- <returns type="struct icaldatetimeperiodtype" annotation="transfer full" comment="The newly created #ICalDatetimeperiodType" />
- <comment xml:space="preserve">Create a new default #ICalDatetimeperiodType</comment>
- <custom> struct icaldatetimeperiodtype datetimeperiodtype;
- datetimeperiodtype.time = icaltime_null_time ();
- datetimeperiodtype.period = icalperiodtype_null_period ();
- return datetimeperiodtype;</custom>
- </method>
- <method name="i_cal_datetimeperiod_type_new" corresponds="CUSTOM" kind="constructor" since="1.0">
- <returns type="ICalDatetimeperiodType *" annotation="transfer full" comment="The newly created #ICalDatetimeperiodType." />
- <comment xml:space="preserve">Create a new #ICalDatetimeperiodType.</comment>
- <custom> return i_cal_datetimeperiod_type_new_full(i_cal_datetimeperiod_type_new_default());</custom>
- </method>
- <method name="i_cal_datetimeperiod_type_get_time" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="dtp" comment="The #ICalDatetimeperiodType to be queried"/>
- <returns type="ICalTime *" annotation="transfer full" comment="The time attribute of @dtp."/>
- <comment>Get the time attribute of #ICalDatetimeperiodType.</comment>
- <custom> g_return_val_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD_TYPE (dtp), NULL);
- return i_cal_time_new_full (((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->time);</custom>
- </method>
- <method name="i_cal_datetimeperiod_type_set_time" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="dtp" comment="The #ICalDatetimeperiodType to be set"/>
- <parameter type="ICalTime *" name="time" comment="The time attribute of @dtp."/>
- <comment>Set the time attribute of #ICalDatetimeperiodType.</comment>
- <custom> g_return_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD_TYPE (dtp));
- g_return_if_fail (time != NULL &amp;&amp; I_CAL_IS_TIME(time));
- ((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->time = *(struct icaltimetype *)i_cal_object_get_native ((ICalObject *)time);</custom>
- </method>
- <method name="i_cal_datetimeperiod_type_get_period" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="dtp" comment="The #ICalDatetimeperiodType to be queried"/>
- <returns type="ICalPeriodType *" annotation="transfer full" comment="The period attribute of @dtp."/>
- <comment>Get the period attribute of #ICalDatetimeperiodType.</comment>
- <custom> g_return_val_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD_TYPE (dtp), NULL);
- return i_cal_period_type_new_full (((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->period);</custom>
- </method>
- <method name="i_cal_datetimeperiod_type_set_period" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="dtp" comment="The #ICalDatetimeperiodType to be set"/>
- <parameter type="ICalPeriodType *" name="period" comment="The period attribute of @dtp."/>
- <comment>Set the period attribute of #ICalDatetimeperiodType.</comment>
- <custom> g_return_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD_TYPE (dtp));
- g_return_if_fail (period != NULL &amp;&amp; I_CAL_IS_PERIOD_TYPE (period));
- ((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->period = *(struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);</custom>
- </method>
-</structure>
diff --git a/src/libical-glib/api/i-cal-datetimeperiod.xml b/src/libical-glib/api/i-cal-datetimeperiod.xml
new file mode 100644
index 00000000..7030080c
--- /dev/null
+++ b/src/libical-glib/api/i-cal-datetimeperiod.xml
@@ -0,0 +1,60 @@
+<!--
+ Copyright (C) 2015 William Yu <williamyu@gnome.org>
+
+ This library is free software: you can redistribute it and/or modify it
+ under the terms of version 2.1. of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library. If not, see <http://www.gnu.org/licenses/>.
+-->
+<structure namespace="ICal" name="Datetimeperiod" native="struct icaldatetimeperiodtype" is_bare="true" default_native="i_cal_datetimeperiod_new_default ()" includes="libical-glib/i-cal-time.h, libical-glib/i-cal-period.h">
+ <method name="i_cal_datetimeperiod_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
+ <returns type="struct icaldatetimeperiodtype" annotation="transfer full" comment="The newly created #ICalDatetimeperiod" />
+ <comment xml:space="preserve">Create a new default #ICalDatetimeperiod</comment>
+ <custom> struct icaldatetimeperiodtype datetimeperiodtype;
+ datetimeperiodtype.time = icaltime_null_time ();
+ datetimeperiodtype.period = icalperiodtype_null_period ();
+ return datetimeperiodtype;</custom>
+ </method>
+ <method name="i_cal_datetimeperiod_new" corresponds="CUSTOM" kind="constructor" since="1.0">
+ <returns type="ICalDatetimeperiod *" annotation="transfer full" comment="The newly created #ICalDatetimeperiod." />
+ <comment xml:space="preserve">Create a new #ICalDatetimeperiod.</comment>
+ <custom> return i_cal_datetimeperiod_new_full(i_cal_datetimeperiod_new_default());</custom>
+ </method>
+ <method name="i_cal_datetimeperiod_get_time" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDatetimeperiod *" name="dtp" comment="The #ICalDatetimeperiod to be queried"/>
+ <returns type="ICalTime *" annotation="transfer full" comment="The time attribute of @dtp."/>
+ <comment>Get the time attribute of #ICalDatetimeperiod.</comment>
+ <custom> g_return_val_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD (dtp), NULL);
+ return i_cal_time_new_full (((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->time);</custom>
+ </method>
+ <method name="i_cal_datetimeperiod_set_time" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDatetimeperiod *" name="dtp" comment="The #ICalDatetimeperiod to be set"/>
+ <parameter type="ICalTime *" name="time" comment="The time attribute of @dtp."/>
+ <comment>Set the time attribute of #ICalDatetimeperiod.</comment>
+ <custom> g_return_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD (dtp));
+ g_return_if_fail (time != NULL &amp;&amp; I_CAL_IS_TIME(time));
+ ((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->time = *(struct icaltimetype *)i_cal_object_get_native ((ICalObject *)time);</custom>
+ </method>
+ <method name="i_cal_datetimeperiod_get_period" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDatetimeperiod *" name="dtp" comment="The #ICalDatetimeperiod to be queried"/>
+ <returns type="ICalPeriod *" annotation="transfer full" comment="The period attribute of @dtp."/>
+ <comment>Get the period attribute of #ICalDatetimeperiod.</comment>
+ <custom> g_return_val_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD (dtp), NULL);
+ return i_cal_period_new_full (((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->period);</custom>
+ </method>
+ <method name="i_cal_datetimeperiod_set_period" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDatetimeperiod *" name="dtp" comment="The #ICalDatetimeperiod to be set"/>
+ <parameter type="ICalPeriod *" name="period" comment="The period attribute of @dtp."/>
+ <comment>Set the period attribute of #ICalDatetimeperiod.</comment>
+ <custom> g_return_if_fail (dtp != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD (dtp));
+ g_return_if_fail (period != NULL &amp;&amp; I_CAL_IS_PERIOD(period));
+ ((struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)dtp))->period = *(struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);</custom>
+ </method>
+</structure>
diff --git a/src/libical-glib/api/i-cal-derived-property.xml b/src/libical-glib/api/i-cal-derived-property.xml
index e1980e32..9170d148 100644
--- a/src/libical-glib/api/i-cal-derived-property.xml
+++ b/src/libical-glib/api/i-cal-derived-property.xml
@@ -677,33 +677,33 @@
<comment>Get the due time of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_duration" corresponds="icalproperty_new_duration" kind="constructor" since="1.0">
- <parameter type="ICalDurationType *" name="v" comment="The duration."/>
+ <parameter type="ICalDuration *" name="v" comment="The duration."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_duration" corresponds="icalproperty_set_duration" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalDurationType *" name="v" comment="The duration."/>
+ <parameter type="ICalDuration *" name="v" comment="The duration."/>
<comment>Set the duration for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_duration" corresponds="icalproperty_get_duration" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="Get the duration of #ICalProperty."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="Get the duration of #ICalProperty."/>
<comment>Get the duration of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_estimatedduration" corresponds="icalproperty_new_estimatedduration" kind="constructor" since="1.0">
- <parameter type="ICalDurationType *" name="v" comment="The estimatedduration."/>
+ <parameter type="ICalDuration *" name="v" comment="The estimatedduration."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_estimatedduration" corresponds="icalproperty_set_estimatedduration" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalDurationType *" name="v" comment="The estimatedduration."/>
+ <parameter type="ICalDuration *" name="v" comment="The estimatedduration."/>
<comment>Set the estimatedduration for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_estimatedduration" corresponds="icalproperty_get_estimatedduration" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="Get the estimatedduration of #ICalProperty."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="Get the estimatedduration of #ICalProperty."/>
<comment>Get the estimatedduration of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_exdate" corresponds="icalproperty_new_exdate" kind="constructor" since="1.0">
@@ -737,48 +737,48 @@
<comment>Get the expand of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_exrule" corresponds="icalproperty_new_exrule" kind="constructor" since="1.0">
- <parameter type="ICalRecurrenceType *" name="v" comment="The exrule recurrence type."/>
+ <parameter type="ICalRecurrence *" name="v" comment="The exrule recurrence type."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_exrule" corresponds="icalproperty_set_exrule" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalRecurrenceType *" name="v" comment="The exrule recurrence type."/>
+ <parameter type="ICalRecurrence *" name="v" comment="The exrule recurrence type."/>
<comment>Set the exrule time for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_exrule" corresponds="icalproperty_get_exrule" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalRecurrenceType *" annotation="transfer full" comment="Get the exrule recurrence type of #ICalProperty."/>
+ <returns type="ICalRecurrence *" annotation="transfer full" comment="Get the exrule recurrence type of #ICalProperty."/>
<comment>Get the exrule recurrence type of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_freebusy" corresponds="icalproperty_new_freebusy" kind="constructor" since="1.0">
- <parameter type="ICalPeriodType *" name="v" comment="The freebusy period type."/>
+ <parameter type="ICalPeriod *" name="v" comment="The freebusy period type."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_freebusy" corresponds="icalproperty_set_freebusy" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalPeriodType *" name="v" comment="The freebusy period type."/>
+ <parameter type="ICalPeriod *" name="v" comment="The freebusy period type."/>
<comment>Set the freebusy time for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_freebusy" corresponds="icalproperty_get_freebusy" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalPeriodType *" annotation="transfer full" comment="Get the freebusy period type of #ICalProperty."/>
+ <returns type="ICalPeriod *" annotation="transfer full" comment="Get the freebusy period type of #ICalProperty."/>
<comment>Get the freebusy period type of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_geo" corresponds="icalproperty_new_geo" kind="constructor" since="1.0">
- <parameter type="ICalGeoType *" name="v" comment="The geo type."/>
+ <parameter type="ICalGeo *" name="v" comment="The geo type."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_geo" corresponds="icalproperty_set_geo" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalGeoType *" name="v" comment="The geo type."/>
+ <parameter type="ICalGeo *" name="v" comment="The geo type."/>
<comment>Set the geo for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_geo" corresponds="icalproperty_get_geo" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalGeoType *" annotation="transfer full" comment="Get the geo type of #ICalProperty."/>
+ <returns type="ICalGeo *" annotation="transfer full" comment="Get the geo type of #ICalProperty."/>
<comment>Get the geo type of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_grant" corresponds="icalproperty_new_grant" kind="constructor" since="1.0">
@@ -1187,18 +1187,18 @@
<comment>Get the queryname of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_rdate" corresponds="icalproperty_new_rdate" kind="constructor" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="v" comment="The rdate."/>
+ <parameter type="ICalDatetimeperiod *" name="v" comment="The rdate."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_rdate" corresponds="icalproperty_set_rdate" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalDatetimeperiodType *" name="v" comment="The rdate."/>
+ <parameter type="ICalDatetimeperiod *" name="v" comment="The rdate."/>
<comment>Set the rdate for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_rdate" corresponds="icalproperty_get_rdate" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalDatetimeperiodType *" annotation="transfer full" comment="Get the rdate of #ICalProperty."/>
+ <returns type="ICalDatetimeperiod *" annotation="transfer full" comment="Get the rdate of #ICalProperty."/>
<comment>Get the rdate of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_recuraccepted" corresponds="icalproperty_new_recuraccepted" kind="constructor" since="1.0">
@@ -1322,18 +1322,18 @@
<comment>Get the replyurl of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_requeststatus" corresponds="icalproperty_new_requeststatus" kind="constructor" since="1.0">
- <parameter type="ICalReqstatType *" name="v" comment="The requeststatus."/>
+ <parameter type="ICalReqstat *" name="v" comment="The requeststatus."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_requeststatus" corresponds="icalproperty_set_requeststatus" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalReqstatType *" name="v" comment="The requeststatus."/>
+ <parameter type="ICalReqstat *" name="v" comment="The requeststatus."/>
<comment>Set the requeststatus for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_requeststatus" corresponds="icalproperty_get_requeststatus" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalReqstatType *" annotation="transfer full" comment="Get the requeststatus of #ICalProperty."/>
+ <returns type="ICalReqstat *" annotation="transfer full" comment="Get the requeststatus of #ICalProperty."/>
<comment>Get the requeststatus of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_resources" corresponds="icalproperty_new_resources" kind="constructor" since="1.0">
@@ -1382,18 +1382,18 @@
<comment>Get the restriction of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_rrule" corresponds="icalproperty_new_rrule" kind="constructor" since="1.0">
- <parameter type="ICalRecurrenceType *" name="v" comment="The rrule recurrence type."/>
+ <parameter type="ICalRecurrence *" name="v" comment="The rrule recurrence type."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_rrule" corresponds="icalproperty_set_rrule" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalRecurrenceType *" name="v" comment="The rrule recurrence type."/>
+ <parameter type="ICalRecurrence *" name="v" comment="The rrule recurrence type."/>
<comment>Set the rrule for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_rrule" corresponds="icalproperty_get_rrule" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalRecurrenceType *" annotation="transfer full" comment="Get the rrule recurrence type of #ICalProperty."/>
+ <returns type="ICalRecurrence *" annotation="transfer full" comment="Get the rrule recurrence type of #ICalProperty."/>
<comment>Get the rrule recurrence type of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_scope" corresponds="icalproperty_new_scope" kind="constructor" since="1.0">
@@ -1517,18 +1517,18 @@
<comment>Get the transp of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_trigger" corresponds="icalproperty_new_trigger" kind="constructor" since="1.0">
- <parameter type="ICalTriggerType *" name="v" comment="The trigger period type."/>
+ <parameter type="ICalTrigger *" name="v" comment="The trigger period type."/>
<returns type="ICalProperty *" annotation="transfer full" comment="The newly create #ICalProperty"/>
<comment xml:space="preserve">Create a new #ICalProperty.</comment>
</method>
<method name="i_cal_property_set_trigger" corresponds="icalproperty_set_trigger" kind="set" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set"/>
- <parameter type="ICalTriggerType *" name="v" comment="The trigger period type."/>
+ <parameter type="ICalTrigger *" name="v" comment="The trigger period type."/>
<comment>Set the trigger time for the #ICalProperty.</comment>
</method>
<method name="i_cal_property_get_trigger" corresponds="icalproperty_get_trigger" kind="get" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be queried."/>
- <returns type="ICalTriggerType *" annotation="transfer full" comment="Get the trigger period type of #ICalProperty."/>
+ <returns type="ICalTrigger *" annotation="transfer full" comment="Get the trigger period type of #ICalProperty."/>
<comment>Get the trigger period type of #ICalProperty.</comment>
</method>
<method name="i_cal_property_new_tzid" corresponds="icalproperty_new_tzid" kind="constructor" since="1.0">
diff --git a/src/libical-glib/api/i-cal-derived-value.xml b/src/libical-glib/api/i-cal-derived-value.xml
index 6e742b33..545196e5 100644
--- a/src/libical-glib/api/i-cal-derived-value.xml
+++ b/src/libical-glib/api/i-cal-derived-value.xml
@@ -215,32 +215,32 @@
</method>
<method name="i_cal_value_set_recur" corresponds="icalvalue_set_recur" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalRecurrenceType *" name="v" comment="The recur value."/>
+ <parameter type="ICalRecurrence *" name="v" comment="The recur value."/>
<comment>Set the recur in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_recur" corresponds="icalvalue_new_recur" kind="constructor" since="1.0">
- <parameter type="ICalRecurrenceType *" name="v" comment="The recur value"/>
+ <parameter type="ICalRecurrence *" name="v" comment="The recur value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type recur.</comment>
</method>
<method name="i_cal_value_get_recur" corresponds="icalvalue_get_recur" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalRecurrenceType *" annotation="allow-none, transfer full" comment="The recur within #ICalValue"/>
+ <returns type="ICalRecurrence *" annotation="allow-none, transfer full" comment="The recur within #ICalValue"/>
<comment>Get the recur of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_trigger" corresponds="icalvalue_set_trigger" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalTriggerType *" name="v" comment="The trigger value."/>
+ <parameter type="ICalTrigger *" name="v" comment="The trigger value."/>
<comment>Set the trigger in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_trigger" corresponds="icalvalue_new_trigger" kind="constructor" since="1.0">
- <parameter type="ICalTriggerType *" name="v" comment="The trigger value"/>
+ <parameter type="ICalTrigger *" name="v" comment="The trigger value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type trigger.</comment>
</method>
<method name="i_cal_value_get_trigger" corresponds="icalvalue_get_trigger" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalTriggerType *" annotation="allow-none, transfer full" comment="The trigger within #ICalValue"/>
+ <returns type="ICalTrigger *" annotation="allow-none, transfer full" comment="The trigger within #ICalValue"/>
<comment>Get the trigger of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_datetime" corresponds="icalvalue_set_datetime" kind="set" since="1.0">
@@ -275,32 +275,32 @@
</method>
<method name="i_cal_value_set_datetimeperiod" corresponds="icalvalue_set_datetimeperiod" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalDatetimeperiodType *" name="v" comment="The datetimeperiod value."/>
+ <parameter type="ICalDatetimeperiod *" name="v" comment="The datetimeperiod value."/>
<comment>Set the datetimeperiod in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_datetimeperiod" corresponds="icalvalue_new_datetimeperiod" kind="constructor" since="1.0">
- <parameter type="ICalDatetimeperiodType *" name="v" comment="The datetimeperiod value"/>
+ <parameter type="ICalDatetimeperiod *" name="v" comment="The datetimeperiod value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type datetimeperiod.</comment>
</method>
<method name="i_cal_value_get_datetimeperiod" corresponds="icalvalue_get_datetimeperiod" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalDatetimeperiodType *" annotation="allow-none, transfer full" comment="The datetimeperiod within #ICalValue"/>
+ <returns type="ICalDatetimeperiod *" annotation="allow-none, transfer full" comment="The datetimeperiod within #ICalValue"/>
<comment>Get the datetimeperiod of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_geo" corresponds="icalvalue_set_geo" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalGeoType *" name="v" comment="The geo value."/>
+ <parameter type="ICalGeo *" name="v" comment="The geo value."/>
<comment>Set the geo in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_geo" corresponds="icalvalue_new_geo" kind="constructor" since="1.0">
- <parameter type="ICalGeoType *" name="v" comment="The geo value"/>
+ <parameter type="ICalGeo *" name="v" comment="The geo value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type geo.</comment>
</method>
<method name="i_cal_value_get_geo" corresponds="icalvalue_get_geo" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalGeoType *" annotation="allow-none, transfer full" comment="The geo within #ICalValue"/>
+ <returns type="ICalGeo *" annotation="allow-none, transfer full" comment="The geo within #ICalValue"/>
<comment>Get the geo of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_attach" corresponds="icalvalue_set_attach" kind="set" since="1.0">
@@ -459,17 +459,17 @@
</method>
<method name="i_cal_value_set_period" corresponds="icalvalue_set_period" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalPeriodType *" name="v" comment="The period value."/>
+ <parameter type="ICalPeriod *" name="v" comment="The period value."/>
<comment>Set the period in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_period" corresponds="icalvalue_new_period" kind="constructor" since="1.0">
- <parameter type="ICalPeriodType *" name="v" comment="The period value"/>
+ <parameter type="ICalPeriod *" name="v" comment="The period value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type period.</comment>
</method>
<method name="i_cal_value_get_period" corresponds="icalvalue_get_period" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalPeriodType *" annotation="allow-none, transfer full" comment="The period within #ICalValue"/>
+ <returns type="ICalPeriod *" annotation="allow-none, transfer full" comment="The period within #ICalValue"/>
<comment>Get the period of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_status" corresponds="icalvalue_set_status" kind="set" since="1.0">
@@ -519,17 +519,17 @@
</method>
<method name="i_cal_value_set_duration" corresponds="icalvalue_set_duration" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalDurationType *" name="v" comment="The duration value."/>
+ <parameter type="ICalDuration *" name="v" comment="The duration value."/>
<comment>Set the duration in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_duration" corresponds="icalvalue_new_duration" kind="constructor" since="1.0">
- <parameter type="ICalDurationType *" name="v" comment="The duration value"/>
+ <parameter type="ICalDuration *" name="v" comment="The duration value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type duration.</comment>
</method>
<method name="i_cal_value_get_duration" corresponds="icalvalue_get_duration" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalDurationType *" annotation="allow-none, transfer full" comment="The duration within #ICalValue"/>
+ <returns type="ICalDuration *" annotation="allow-none, transfer full" comment="The duration within #ICalValue"/>
<comment>Get the duration of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_integer" corresponds="icalvalue_set_integer" kind="set" since="1.0">
@@ -639,17 +639,17 @@
</method>
<method name="i_cal_value_set_requeststatus" corresponds="icalvalue_set_requeststatus" kind="set" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue."/>
- <parameter type="ICalReqstatType *" name="v" comment="The requeststatus value."/>
+ <parameter type="ICalReqstat *" name="v" comment="The requeststatus value."/>
<comment>Set the requeststatus in the #ICalValue.</comment>
</method>
<method name="i_cal_value_new_requeststatus" corresponds="icalvalue_new_requeststatus" kind="constructor" since="1.0">
- <parameter type="ICalReqstatType *" name="v" comment="The requeststatus value"/>
+ <parameter type="ICalReqstat *" name="v" comment="The requeststatus value"/>
<returns type="ICalValue *" annotation="transfer full" comment="The newly create #ICalValue."/>
<comment>Create a new #ICalValue with the type requeststatus.</comment>
</method>
<method name="i_cal_value_get_requeststatus" corresponds="icalvalue_get_requeststatus" kind="get" since="1.0">
<parameter type="ICalValue *" name="value" comment="The #ICalValue to be queried."/>
- <returns type="ICalReqstatType *" annotation="allow-none, transfer full" comment="The requeststatus within #ICalValue"/>
+ <returns type="ICalReqstat *" annotation="allow-none, transfer full" comment="The requeststatus within #ICalValue"/>
<comment>Get the requeststatus of #ICalValue.</comment>
</method>
<method name="i_cal_value_set_date" corresponds="icalvalue_set_date" kind="set" since="1.0">
diff --git a/src/libical-glib/api/i-cal-duration-type.xml b/src/libical-glib/api/i-cal-duration-type.xml
deleted file mode 100644
index e48526ce..00000000
--- a/src/libical-glib/api/i-cal-duration-type.xml
+++ /dev/null
@@ -1,139 +0,0 @@
-<!--
- Copyright (C) 2015 William Yu <williamyu@gnome.org>
-
- This library is free software: you can redistribute it and/or modify it
- under the terms of version 2.1. of the GNU Lesser General Public License
- as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
--->
-<structure namespace="ICal" name="DurationType" native="struct icaldurationtype" is_bare="true" default_native="icaldurationtype_null_duration()">
- <method name="i_cal_duration_type_is_neg" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="gint" comment="The is_neg." />
- <comment xml:space="preserve">Get the is_neg of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->is_neg;</custom>
- </method>
- <method name="i_cal_duration_type_set_is_neg" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="gint" name="is_neg" comment="The is_neg."/>
- <comment>Set the is_neg of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->is_neg = is_neg;</custom>
- </method>
- <method name="i_cal_duration_type_get_days" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="guint" comment="The days." />
- <comment xml:space="preserve">Get the days of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->days;</custom>
- </method>
- <method name="i_cal_duration_type_set_days" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="guint" name="days" comment="The days."/>
- <comment>Set the days of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->days = days;</custom>
- </method>
- <method name="i_cal_duration_type_get_weeks" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="guint" comment="The weeks." />
- <comment xml:space="preserve">Get the weeks of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->weeks;</custom>
- </method>
- <method name="i_cal_duration_type_set_weeks" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="guint" name="weeks" comment="The weeks."/>
- <comment>Set the weeks of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->weeks = weeks;</custom>
- </method>
- <method name="i_cal_duration_type_get_hours" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="guint" comment="The hours." />
- <comment xml:space="preserve">Get the hours of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->hours;</custom>
- </method>
- <method name="i_cal_duration_type_set_hours" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="guint" name="hours" comment="The hours."/>
- <comment>Set the hours of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->hours = hours;</custom>
- </method>
- <method name="i_cal_duration_type_get_minutes" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="guint" comment="The minutes." />
- <comment xml:space="preserve">Get the minutes of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->minutes;</custom>
- </method>
- <method name="i_cal_duration_type_set_minutes" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="guint" name="minutes" comment="The minutes."/>
- <comment>Set the minutes of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->minutes = minutes;</custom>
- </method>
- <method name="i_cal_duration_type_get_seconds" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be queried."/>
- <returns type="guint" comment="The seconds." />
- <comment xml:space="preserve">Get the seconds of #ICalDurationType.</comment>
- <custom> g_return_val_if_fail (duration_type != NULL, 0);
- return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->seconds;</custom>
- </method>
- <method name="i_cal_duration_type_set_seconds" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalDurationType *" name="duration_type" comment="The #ICalDurationType to be set."/>
- <parameter type="guint" name="seconds" comment="The seconds."/>
- <comment>Set the seconds of #ICalDurationType.</comment>
- <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration_type));
- ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->seconds = seconds;</custom>
- </method>
- <method name="i_cal_duration_type_from_int" corresponds="icaldurationtype_from_int" kind="constructor" since="1.0">
- <parameter type="gint" name="t" comment="the duration in second"/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="The newly created #ICalDurationType" />
- <comment xml:space="preserve">Create a #ICalDurationType from the duration in second</comment>
- </method>
- <method name="i_cal_duration_type_from_string" corresponds="icaldurationtype_from_string" kind="constructor" since="1.0">
- <parameter type="const gchar *" name="str" comment="The string representation of the duration"/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="The newly created #ICalDurationType" />
- <comment xml:space="preserve">Create a #ICalDurationType from the duration in string</comment>
- </method>
- <method name="i_cal_duration_type_as_int" corresponds="icaldurationtype_as_int" kind="others" since="1.0">
- <parameter type="ICalDurationType *" name="duration" comment="The #ICalDurationType to be converted"/>
- <returns type="gint" comment="The duration in second" />
- <comment xml:space="preserve">Convert the #ICalDurationType to the representation in second</comment>
- </method>
- <method name="i_cal_duration_type_as_ical_string_r" corresponds="icaldurationtype_as_ical_string_r" kind="others" since="1.0">
- <parameter type="ICalDurationType *" name="duration" comment="The #ICalDurationType to be converted"/>
- <returns type="gchar *" annotation="transfer full" comment="The duration in string" />
- <comment xml:space="preserve">Convert the #ICalDurationType to the representation in string</comment>
- </method>
- <method name="i_cal_duration_type_null_duration" corresponds="icaldurationtype_null_duration" kind="constructor" since="1.0">
- <returns type="ICalDurationType *" annotation="transfer full" comment="The newly created #ICalDurationType" />
- <comment xml:space="preserve">Create a #ICalDurationType with all the fields to be zero</comment>
- </method>
- <method name="i_cal_duration_type_bad_duration" corresponds="icaldurationtype_bad_duration" kind="constructor" since="1.0">
- <returns type="ICalDurationType *" annotation="transfer full" comment="The newly created #ICalDurationType" />
- <comment xml:space="preserve">Create a bad #ICalDurationType</comment>
- </method>
- <method name="i_cal_duration_type_is_null_duration" corresponds="icaldurationtype_is_null_duration" kind="others" since="1.0">
- <parameter type="ICalDurationType *" name="duration" comment="The #ICalDurationType to be checked"/>
- <returns type="gint" comment="1 if @duration is the null_duration, 0 if not." />
- <comment xml:space="preserve">Check whether the #ICalDurationType is the null_duration</comment>
- </method>
- <method name="i_cal_duration_type_is_bad_duration" corresponds="icaldurationtype_is_bad_duration" kind="others" since="1.0">
- <parameter type="ICalDurationType *" name="duration" comment="The #ICalDurationType to be checked"/>
- <returns type="gint" comment="1 if @duration is the bad_duration, 0 if not." />
- <comment xml:space="preserve">Check whether the #ICalDurationType is the bad_duration</comment>
- </method>
-</structure>
diff --git a/src/libical-glib/api/i-cal-duration.xml b/src/libical-glib/api/i-cal-duration.xml
new file mode 100644
index 00000000..9042a895
--- /dev/null
+++ b/src/libical-glib/api/i-cal-duration.xml
@@ -0,0 +1,139 @@
+<!--
+ Copyright (C) 2015 William Yu <williamyu@gnome.org>
+
+ This library is free software: you can redistribute it and/or modify it
+ under the terms of version 2.1. of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library. If not, see <http://www.gnu.org/licenses/>.
+-->
+<structure namespace="ICal" name="Duration" native="struct icaldurationtype" is_bare="true" default_native="icaldurationtype_null_duration()">
+ <method name="i_cal_duration_is_neg" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="gint" comment="The is_neg." />
+ <comment xml:space="preserve">Get the is_neg of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->is_neg;</custom>
+ </method>
+ <method name="i_cal_duration_set_is_neg" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="gint" name="is_neg" comment="The is_neg."/>
+ <comment>Set the is_neg of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->is_neg = is_neg;</custom>
+ </method>
+ <method name="i_cal_duration_get_days" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="guint" comment="The days." />
+ <comment xml:space="preserve">Get the days of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->days;</custom>
+ </method>
+ <method name="i_cal_duration_set_days" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="guint" name="days" comment="The days."/>
+ <comment>Set the days of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->days = days;</custom>
+ </method>
+ <method name="i_cal_duration_get_weeks" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="guint" comment="The weeks." />
+ <comment xml:space="preserve">Get the weeks of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->weeks;</custom>
+ </method>
+ <method name="i_cal_duration_set_weeks" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="guint" name="weeks" comment="The weeks."/>
+ <comment>Set the weeks of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->weeks = weeks;</custom>
+ </method>
+ <method name="i_cal_duration_get_hours" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="guint" comment="The hours." />
+ <comment xml:space="preserve">Get the hours of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->hours;</custom>
+ </method>
+ <method name="i_cal_duration_set_hours" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="guint" name="hours" comment="The hours."/>
+ <comment>Set the hours of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->hours = hours;</custom>
+ </method>
+ <method name="i_cal_duration_get_minutes" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="guint" comment="The minutes." />
+ <comment xml:space="preserve">Get the minutes of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->minutes;</custom>
+ </method>
+ <method name="i_cal_duration_set_minutes" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="guint" name="minutes" comment="The minutes."/>
+ <comment>Set the minutes of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->minutes = minutes;</custom>
+ </method>
+ <method name="i_cal_duration_get_seconds" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be queried."/>
+ <returns type="guint" comment="The seconds." />
+ <comment xml:space="preserve">Get the seconds of #ICalDuration.</comment>
+ <custom> g_return_val_if_fail (duration_type != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->seconds;</custom>
+ </method>
+ <method name="i_cal_duration_set_seconds" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalDuration *" name="duration_type" comment="The #ICalDuration to be set."/>
+ <parameter type="guint" name="seconds" comment="The seconds."/>
+ <comment>Set the seconds of #ICalDuration.</comment>
+ <custom> g_return_if_fail (duration_type != NULL &amp;&amp; I_CAL_IS_DURATION (duration_type));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration_type))->seconds = seconds;</custom>
+ </method>
+ <method name="i_cal_duration_from_int" corresponds="icaldurationtype_from_int" kind="constructor" since="1.0">
+ <parameter type="gint" name="t" comment="the duration in second"/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="The newly created #ICalDuration" />
+ <comment xml:space="preserve">Create a #ICalDuration from the duration in second</comment>
+ </method>
+ <method name="i_cal_duration_from_string" corresponds="icaldurationtype_from_string" kind="constructor" since="1.0">
+ <parameter type="const gchar *" name="str" comment="The string representation of the duration"/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="The newly created #ICalDuration" />
+ <comment xml:space="preserve">Create a #ICalDuration from the duration in string</comment>
+ </method>
+ <method name="i_cal_duration_as_int" corresponds="icaldurationtype_as_int" kind="others" since="1.0">
+ <parameter type="ICalDuration *" name="duration" comment="The #ICalDuration to be converted"/>
+ <returns type="gint" comment="The duration in second" />
+ <comment xml:space="preserve">Convert the #ICalDuration to the representation in second</comment>
+ </method>
+ <method name="i_cal_duration_as_ical_string_r" corresponds="icaldurationtype_as_ical_string_r" kind="others" since="1.0">
+ <parameter type="ICalDuration *" name="duration" comment="The #ICalDuration to be converted"/>
+ <returns type="gchar *" annotation="transfer full" comment="The duration in string" />
+ <comment xml:space="preserve">Convert the #ICalDuration to the representation in string</comment>
+ </method>
+ <method name="i_cal_duration_null_duration" corresponds="icaldurationtype_null_duration" kind="constructor" since="1.0">
+ <returns type="ICalDuration *" annotation="transfer full" comment="The newly created #ICalDuration" />
+ <comment xml:space="preserve">Create a #ICalDuration with all the fields to be zero</comment>
+ </method>
+ <method name="i_cal_duration_bad_duration" corresponds="icaldurationtype_bad_duration" kind="constructor" since="1.0">
+ <returns type="ICalDuration *" annotation="transfer full" comment="The newly created #ICalDuration" />
+ <comment xml:space="preserve">Create a bad #ICalDuration</comment>
+ </method>
+ <method name="i_cal_duration_is_null_duration" corresponds="icaldurationtype_is_null_duration" kind="others" since="1.0">
+ <parameter type="ICalDuration *" name="duration" comment="The #ICalDuration to be checked"/>
+ <returns type="gint" comment="1 if @duration is the null_duration, 0 if not." />
+ <comment xml:space="preserve">Check whether the #ICalDuration is the null_duration</comment>
+ </method>
+ <method name="i_cal_duration_is_bad_duration" corresponds="icaldurationtype_is_bad_duration" kind="others" since="1.0">
+ <parameter type="ICalDuration *" name="duration" comment="The #ICalDuration to be checked"/>
+ <returns type="gint" comment="1 if @duration is the bad_duration, 0 if not." />
+ <comment xml:space="preserve">Check whether the #ICalDuration is the bad_duration</comment>
+ </method>
+</structure>
diff --git a/src/libical-glib/api/i-cal-geo-type.xml b/src/libical-glib/api/i-cal-geo-type.xml
deleted file mode 100644
index 6603646f..00000000
--- a/src/libical-glib/api/i-cal-geo-type.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<!--
- Copyright (C) 2015 William Yu <williamyu@gnome.org>
-
- This library is free software: you can redistribute it and/or modify it
- under the terms of version 2.1. of the GNU Lesser General Public License
- as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
--->
-<structure namespace="ICal" name="GeoType" native="struct icalgeotype" is_bare="true" default_native="i_cal_geo_type_new_default ()">
- <method name="i_cal_geo_type_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
- <returns type="struct icalgeotype" annotation="transfer full" comment="The newly created #ICalGeoType" />
- <comment xml:space="preserve">Create a new default #ICalGeoType.</comment>
- <custom> struct icalgeotype geotype;
- geotype.lat = 0;
- geotype.lon = 0;
- return geotype;</custom>
- </method>
- <method name="i_cal_geo_type_new" corresponds="CUSTOM" kind="constructor" since="1.0">
- <parameter type="gdouble" name="lat" comment="Latitude."/>
- <parameter type="gdouble" name="lon" comment="Longitude."/>
- <returns type="ICalGeoType *" annotation="transfer full" comment="The newly created #ICalGeoType." />
- <comment xml:space="preserve">Create a new #ICalGeoType.</comment>
- <custom> struct icalgeotype geo;
-
- geo = i_cal_geo_type_new_default();
- geo.lat = lat;
- geo.lon = lon;
-
- return i_cal_geo_type_new_full(geo);</custom>
- </method>
- <method name="i_cal_geo_type_new_clone" corresponds="CUSTOM" kind="constructor" since="1.0">
- <parameter type="const ICalGeoType *" name="geo" comment="The #ICalGeoType to clone."/>
- <returns type="ICalGeoType *" annotation="transfer full" comment="The newly created #ICalGeoType, copy of @geo." />
- <comment xml:space="preserve">Create a new #ICalGeoType, copy of @geo.</comment>
- <custom> struct icalgeotype *src;
-
- g_return_val_if_fail(I_CAL_IS_GEO_TYPE(geo), NULL);
-
- src = (struct icalgeotype *)i_cal_object_get_native((ICalObject *)geo);
- g_return_val_if_fail(src != NULL, NULL);
-
- return i_cal_geo_type_new_full(*src);</custom>
- </method>
- <method name="i_cal_geo_type_get_lat" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalGeoType *" name="geo_type" comment="The #ICalGeoType to be queried."/>
- <returns type="gdouble" comment="The lat." />
- <comment xml:space="preserve">Get the lat of #ICalGeoType.</comment>
- <custom> g_return_val_if_fail (geo_type != NULL, 0);
- return ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo_type))->lat;</custom>
- </method>
- <method name="i_cal_geo_type_set_lat" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalGeoType *" name="geo_type" comment="The #ICalGeoType to be set."/>
- <parameter type="gdouble" name="lat" comment="The lat."/>
- <comment>Set the lat of #ICalGeoType.</comment>
- <custom> g_return_if_fail (geo_type != NULL &amp;&amp; I_CAL_IS_GEO_TYPE (geo_type));
- ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo_type))->lat = lat;</custom>
- </method>
- <method name="i_cal_geo_type_get_lon" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalGeoType *" name="geo_type" comment="The #ICalGeoType to be queried."/>
- <returns type="gdouble" comment="The lon." />
- <comment xml:space="preserve">Get the lon of #ICalGeoType.</comment>
- <custom> g_return_val_if_fail (geo_type != NULL, 0);
- return ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo_type))->lon;</custom>
- </method>
- <method name="i_cal_geo_type_set_lon" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalGeoType *" name="geo_type" comment="The #ICalGeoType to be set."/>
- <parameter type="gdouble" name="lon" comment="The lon."/>
- <comment>Set the lon of #ICalGeoType.</comment>
- <custom> g_return_if_fail (geo_type != NULL &amp;&amp; I_CAL_IS_GEO_TYPE (geo_type));
- ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo_type))->lon = lon;</custom>
- </method>
-</structure>
diff --git a/src/libical-glib/api/i-cal-geo.xml b/src/libical-glib/api/i-cal-geo.xml
new file mode 100644
index 00000000..94931713
--- /dev/null
+++ b/src/libical-glib/api/i-cal-geo.xml
@@ -0,0 +1,79 @@
+<!--
+ Copyright (C) 2015 William Yu <williamyu@gnome.org>
+
+ This library is free software: you can redistribute it and/or modify it
+ under the terms of version 2.1. of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library. If not, see <http://www.gnu.org/licenses/>.
+-->
+<structure namespace="ICal" name="Geo" native="struct icalgeotype" is_bare="true" default_native="i_cal_geo_new_default ()">
+ <method name="i_cal_geo_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
+ <returns type="struct icalgeotype" annotation="transfer full" comment="The newly created #ICalGeo" />
+ <comment xml:space="preserve">Create a new default #ICalGeo.</comment>
+ <custom> struct icalgeotype geotype;
+ geotype.lat = 0;
+ geotype.lon = 0;
+ return geotype;</custom>
+ </method>
+ <method name="i_cal_geo_new" corresponds="CUSTOM" kind="constructor" since="1.0">
+ <parameter type="gdouble" name="lat" comment="Latitude."/>
+ <parameter type="gdouble" name="lon" comment="Longitude."/>
+ <returns type="ICalGeo *" annotation="transfer full" comment="The newly created #ICalGeo." />
+ <comment xml:space="preserve">Create a new #ICalGeo.</comment>
+ <custom> struct icalgeotype geo;
+
+ geo = i_cal_geo_new_default();
+ geo.lat = lat;
+ geo.lon = lon;
+
+ return i_cal_geo_new_full(geo);</custom>
+ </method>
+ <method name="i_cal_geo_new_clone" corresponds="CUSTOM" kind="constructor" since="1.0">
+ <parameter type="const ICalGeo *" name="geo" comment="The #ICalGeo to clone."/>
+ <returns type="ICalGeo *" annotation="transfer full" comment="The newly created #ICalGeo, copy of @geo." />
+ <comment xml:space="preserve">Create a new #ICalGeo, copy of @geo.</comment>
+ <custom> struct icalgeotype *src;
+
+ g_return_val_if_fail(I_CAL_IS_GEO(geo), NULL);
+
+ src = (struct icalgeotype *)i_cal_object_get_native((ICalObject *)geo);
+ g_return_val_if_fail(src != NULL, NULL);
+
+ return i_cal_geo_new_full(*src);</custom>
+ </method>
+ <method name="i_cal_geo_get_lat" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalGeo *" name="geo" comment="The #ICalGeo to be queried."/>
+ <returns type="gdouble" comment="The lat." />
+ <comment xml:space="preserve">Get the lat of #ICalGeo.</comment>
+ <custom> g_return_val_if_fail (geo != NULL, 0);
+ return ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo))->lat;</custom>
+ </method>
+ <method name="i_cal_geo_set_lat" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalGeo *" name="geo" comment="The #ICalGeo to be set."/>
+ <parameter type="gdouble" name="lat" comment="The lat."/>
+ <comment>Set the lat of #ICalGeo.</comment>
+ <custom> g_return_if_fail (geo != NULL &amp;&amp; I_CAL_IS_GEO (geo));
+ ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo))->lat = lat;</custom>
+ </method>
+ <method name="i_cal_geo_get_lon" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalGeo *" name="geo" comment="The #ICalGeo to be queried."/>
+ <returns type="gdouble" comment="The lon." />
+ <comment xml:space="preserve">Get the lon of #ICalGeo.</comment>
+ <custom> g_return_val_if_fail (geo != NULL, 0);
+ return ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo))->lon;</custom>
+ </method>
+ <method name="i_cal_geo_set_lon" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalGeo *" name="geo" comment="The #ICalGeo to be set."/>
+ <parameter type="gdouble" name="lon" comment="The lon."/>
+ <comment>Set the lon of #ICalGeo.</comment>
+ <custom> g_return_if_fail (geo != NULL &amp;&amp; I_CAL_IS_GEO (geo));
+ ((struct icalgeotype *)i_cal_object_get_native ((ICalObject *)geo))->lon = lon;</custom>
+ </method>
+</structure>
diff --git a/src/libical-glib/api/i-cal-period-type.xml b/src/libical-glib/api/i-cal-period-type.xml
deleted file mode 100644
index fa882e62..00000000
--- a/src/libical-glib/api/i-cal-period-type.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-<!--
- Copyright (C) 2015 William Yu <williamyu@gnome.org>
-
- This library is free software: you can redistribute it and/or modify it
- under the terms of version 2.1. of the GNU Lesser General Public License
- as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
--->
-<structure namespace="ICal" name="PeriodType" native="struct icalperiodtype" is_bare="true" default_native="icalperiodtype_null_period ()">
- <method name="i_cal_period_type_get_start" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be queried."/>
- <returns type="ICalTime *" annotation="transfer full" comment="The start of @period."/>
- <comment>Get the start time from an #ICalPeriodType.</comment>
- <custom> g_return_val_if_fail (period != NULL, NULL);
- g_return_val_if_fail (I_CAL_IS_PERIOD_TYPE (period), NULL);
-
- return i_cal_time_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).start);</custom>
- </method>
- <method name="i_cal_period_type_set_start" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be set."/>
- <parameter type="ICalTime *" name="start" comment="The start of @period."/>
- <comment>Set the start time of an #ICalPeriodType.</comment>
- <custom> struct icalperiodtype *periodtype;
- g_return_if_fail (period != NULL);
- g_return_if_fail (I_CAL_IS_PERIOD_TYPE (period));
- g_return_if_fail (start != NULL);
- g_return_if_fail (I_CAL_IS_TIME(start));
-
- periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
- periodtype->start = * (struct icaltimetype *)i_cal_object_get_native ((ICalObject *)start);</custom>
- </method>
- <method name="i_cal_period_type_get_end" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be queried."/>
- <returns type="ICalTime *" annotation="transfer full" comment="The end of @period."/>
- <comment>Get the end time from an #ICalPeriodType.</comment>
- <custom> g_return_val_if_fail (period != NULL, NULL);
- g_return_val_if_fail (I_CAL_IS_PERIOD_TYPE (period), NULL);
-
- return i_cal_time_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).end);</custom>
- </method>
- <method name="i_cal_period_type_set_end" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be set."/>
- <parameter type="ICalTime *" name="end" comment="The end of @period."/>
- <comment>Set the end time of an #ICalPeriodType.</comment>
- <custom> struct icalperiodtype *periodtype;
- g_return_if_fail (period != NULL);
- g_return_if_fail (I_CAL_IS_PERIOD_TYPE (period));
- g_return_if_fail (end != NULL);
- g_return_if_fail (I_CAL_IS_TIME(end));
-
- periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
- periodtype->end = (* (struct icaltimetype *)i_cal_object_get_native ((ICalObject *)end));</custom>
- </method>
- <method name="i_cal_period_type_get_duration" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be queried."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="The duration of @period."/>
- <comment>Get the duration from an #ICalPeriodType.</comment>
- <custom> g_return_val_if_fail (period != NULL, NULL);
- g_return_val_if_fail (I_CAL_IS_PERIOD_TYPE (period), NULL);
-
- return i_cal_duration_type_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).duration);</custom>
- </method>
- <method name="i_cal_period_type_set_duration" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalPeriodType *" name="period" comment="The #ICalPeriodType to be set."/>
- <parameter type="ICalDurationType *" name="duration" comment="The duration of @period."/>
- <comment>Set the duration of an #ICalPeriodType.</comment>
- <custom> struct icalperiodtype *periodtype;
- g_return_if_fail (period != NULL);
- g_return_if_fail (I_CAL_IS_PERIOD_TYPE (period));
- g_return_if_fail (duration != NULL);
- g_return_if_fail (I_CAL_IS_DURATION_TYPE (duration));
-
- periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
- periodtype->duration = (* (struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration));</custom>
- </method>
- <method name="i_cal_period_type_from_string" corresponds="icalperiodtype_from_string" kind="constructor" since="1.0">
- <parameter type="const gchar *" name="str" comment="The string used to create the #ICalPeriodType"/>
- <returns type="ICalPeriodType *" annotation="transfer full" comment="The newly created #ICalPeriodType"/>
- <comment xml:space="preserve">Create a #ICalPeriodType from a string.</comment>
- </method>
- <method name="i_cal_period_type_as_ical_string_r" corresponds="icalperiodtype_as_ical_string_r" since="1.0">
- <parameter type="ICalPeriodType *" name="p" comment="The #ICalPeriodType to be translated."/>
- <returns type="gchar *" annotation="transfer full" comment="The string representation of #ICalPeriodType."/>
- <comment xml:space="preserve">Translate #ICalPeriodType to string.</comment>
- </method>
- <method name="i_cal_period_type_null_period" corresponds="icalperiodtype_null_period" since="1.0">
- <returns type="ICalPeriodType *" annotation="transfer full" comment="The newly created default #ICalPeriodType"/>
- <comment xml:space="preserve">Create a default #ICalPeriodType.</comment>
- </method>
- <method name="i_cal_period_type_is_null_period" corresponds="icalperiodtype_is_null_period" since="1.0">
- <parameter type="ICalPeriodType *" name="p" comment="The #ICalPeriodType to be checked."/>
- <returns type="gint" comment="1 if yes, 0 if not."/>
- <comment xml:space="preserve">Check the #ICalPeriodType is null_period.</comment>
- </method>
- <method name="i_cal_period_type_is_valid_period" corresponds="icalperiodtype_is_valid_period" since="1.0">
- <parameter type="ICalPeriodType *" name="p" comment="The #ICalPeriodType to be checked."/>
- <returns type="gint" comment="1 if yes, 0 if not."/>
- <comment xml:space="preserve">Check the #ICalPeriodType is valid_period.</comment>
- </method>
-</structure>
diff --git a/src/libical-glib/api/i-cal-period.xml b/src/libical-glib/api/i-cal-period.xml
new file mode 100644
index 00000000..68cf35f6
--- /dev/null
+++ b/src/libical-glib/api/i-cal-period.xml
@@ -0,0 +1,107 @@
+<!--
+ Copyright (C) 2015 William Yu <williamyu@gnome.org>
+
+ This library is free software: you can redistribute it and/or modify it
+ under the terms of version 2.1. of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library. If not, see <http://www.gnu.org/licenses/>.
+-->
+<structure namespace="ICal" name="Period" native="struct icalperiodtype" is_bare="true" default_native="icalperiodtype_null_period ()">
+ <method name="i_cal_period_get_start" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be queried."/>
+ <returns type="ICalTime *" annotation="transfer full" comment="The start of @period."/>
+ <comment>Get the start time from an #ICalPeriod.</comment>
+ <custom> g_return_val_if_fail (period != NULL, NULL);
+ g_return_val_if_fail (I_CAL_IS_PERIOD (period), NULL);
+
+ return i_cal_time_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).start);</custom>
+ </method>
+ <method name="i_cal_period_set_start" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be set."/>
+ <parameter type="ICalTime *" name="start" comment="The start of @period."/>
+ <comment>Set the start time of an #ICalPeriod.</comment>
+ <custom> struct icalperiodtype *periodtype;
+ g_return_if_fail (period != NULL);
+ g_return_if_fail (I_CAL_IS_PERIOD (period));
+ g_return_if_fail (start != NULL);
+ g_return_if_fail (I_CAL_IS_TIME(start));
+
+ periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
+ periodtype->start = * (struct icaltimetype *)i_cal_object_get_native ((ICalObject *)start);</custom>
+ </method>
+ <method name="i_cal_period_get_end" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be queried."/>
+ <returns type="ICalTime *" annotation="transfer full" comment="The end of @period."/>
+ <comment>Get the end time from an #ICalPeriod.</comment>
+ <custom> g_return_val_if_fail (period != NULL, NULL);
+ g_return_val_if_fail (I_CAL_IS_PERIOD (period), NULL);
+
+ return i_cal_time_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).end);</custom>
+ </method>
+ <method name="i_cal_period_set_end" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be set."/>
+ <parameter type="ICalTime *" name="end" comment="The end of @period."/>
+ <comment>Set the end time of an #ICalPeriod.</comment>
+ <custom> struct icalperiodtype *periodtype;
+ g_return_if_fail (period != NULL);
+ g_return_if_fail (I_CAL_IS_PERIOD (period));
+ g_return_if_fail (end != NULL);
+ g_return_if_fail (I_CAL_IS_TIME(end));
+
+ periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
+ periodtype->end = (* (struct icaltimetype *)i_cal_object_get_native ((ICalObject *)end));</custom>
+ </method>
+ <method name="i_cal_period_get_duration" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be queried."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="The duration of @period."/>
+ <comment>Get the duration from an #ICalPeriod.</comment>
+ <custom> g_return_val_if_fail (period != NULL, NULL);
+ g_return_val_if_fail (I_CAL_IS_PERIOD (period), NULL);
+
+ return i_cal_duration_new_full ((* (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period)).duration);</custom>
+ </method>
+ <method name="i_cal_period_set_duration" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalPeriod *" name="period" comment="The #ICalPeriod to be set."/>
+ <parameter type="ICalDuration *" name="duration" comment="The duration of @period."/>
+ <comment>Set the duration of an #ICalPeriod.</comment>
+ <custom> struct icalperiodtype *periodtype;
+ g_return_if_fail (period != NULL);
+ g_return_if_fail (I_CAL_IS_PERIOD (period));
+ g_return_if_fail (duration != NULL);
+ g_return_if_fail (I_CAL_IS_DURATION(duration));
+
+ periodtype = (struct icalperiodtype *)i_cal_object_get_native ((ICalObject *)period);
+ periodtype->duration = (* (struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration));</custom>
+ </method>
+ <method name="i_cal_period_from_string" corresponds="icalperiodtype_from_string" kind="constructor" since="1.0">
+ <parameter type="const gchar *" name="str" comment="The string used to create the #ICalPeriod"/>
+ <returns type="ICalPeriod *" annotation="transfer full" comment="The newly created #ICalPeriod"/>
+ <comment xml:space="preserve">Create a #ICalPeriod from a string.</comment>
+ </method>
+ <method name="i_cal_period_as_ical_string_r" corresponds="icalperiodtype_as_ical_string_r" since="1.0">
+ <parameter type="ICalPeriod *" name="p" comment="The #ICalPeriod to be translated."/>
+ <returns type="gchar *" annotation="transfer full" comment="The string representation of #ICalPeriod."/>
+ <comment xml:space="preserve">Translate #ICalPeriod to string.</comment>
+ </method>
+ <method name="i_cal_period_null_period" corresponds="icalperiodtype_null_period" since="1.0">
+ <returns type="ICalPeriod *" annotation="transfer full" comment="The newly created default #ICalPeriod"/>
+ <comment xml:space="preserve">Create a default #ICalPeriod.</comment>
+ </method>
+ <method name="i_cal_period_is_null_period" corresponds="icalperiodtype_is_null_period" since="1.0">
+ <parameter type="ICalPeriod *" name="p" comment="The #ICalPeriod to be checked."/>
+ <returns type="gint" comment="1 if yes, 0 if not."/>
+ <comment xml:space="preserve">Check the #ICalPeriod is null_period.</comment>
+ </method>
+ <method name="i_cal_period_is_valid_period" corresponds="icalperiodtype_is_valid_period" since="1.0">
+ <parameter type="ICalPeriod *" name="p" comment="The #ICalPeriod to be checked."/>
+ <returns type="gint" comment="1 if yes, 0 if not."/>
+ <comment xml:space="preserve">Check the #ICalPeriod is valid_period.</comment>
+ </method>
+</structure>
diff --git a/src/libical-glib/api/i-cal-recur-iterator.xml b/src/libical-glib/api/i-cal-recur-iterator.xml
index 81f1c6f9..fbf80342 100644
--- a/src/libical-glib/api/i-cal-recur-iterator.xml
+++ b/src/libical-glib/api/i-cal-recur-iterator.xml
@@ -15,7 +15,7 @@
-->
<structure namespace="ICal" name="RecurIterator" native="icalrecur_iterator" destroy_func="icalrecur_iterator_free">
<method name="i_cal_recur_iterator_new" corresponds="icalrecur_iterator_new" kind="constructor" since="1.0">
- <parameter type="ICalRecurrenceType *" name="rule" comment="The rule applied on the #ICalRecurIterator."/>
+ <parameter type="ICalRecurrence *" name="rule" comment="The rule applied on the #ICalRecurIterator."/>
<parameter type="ICalTime *" name="dtstart" comment="The start time of the recurrence."/>
<returns type="ICalRecurIterator *" annotation="transfer full" comment="The newly created #ICalRecurIterator"/>
<comment xml:space="preserve">Create an #ICalRecurIterator.</comment>
diff --git a/src/libical-glib/api/i-cal-recur.xml b/src/libical-glib/api/i-cal-recur.xml
index 3aa8559f..018e6edc 100644
--- a/src/libical-glib/api/i-cal-recur.xml
+++ b/src/libical-glib/api/i-cal-recur.xml
@@ -38,31 +38,31 @@
</method>
<method name="i_cal_recur_string_to_weekday" corresponds="icalrecur_string_to_weekday" since="1.0">
<parameter type="const gchar *" name="str" comment="The string representation of the weekday."/>
- <returns type="ICalRecurrenceTypeWeekday" comment="The enum representation of the weekday."/>
+ <returns type="ICalRecurrenceWeekday" comment="The enum representation of the weekday."/>
<comment xml:space="preserve">Convert a string representation to an enum representation for the weekday.</comment>
</method>
<method name="i_cal_recur_weekday_to_string" corresponds="icalrecur_weekday_to_string" since="2.0">
- <parameter type="ICalRecurrenceTypeWeekday" name="kind" comment="The freqeuncy enum"/>
+ <parameter type="ICalRecurrenceWeekday" name="kind" comment="The freqeuncy enum"/>
<returns type="const gchar *" comment="The string representation of weekday"/>
<comment xml:space="preserve">Convert a enum representation to a string representation for the weekday.</comment>
</method>
<method name="i_cal_recur_string_to_freq" corresponds="icalrecur_string_to_freq" since="2.0">
<parameter type="const gchar *" name="str" comment="The string representation of the frequency."/>
- <returns type="ICalRecurrenceTypeFrequency" comment="The enum representation of the frequency."/>
+ <returns type="ICalRecurrenceFrequency" comment="The enum representation of the frequency."/>
<comment xml:space="preserve">Convert a string representation to an enum representation for the frequency.</comment>
</method>
<method name="i_cal_recur_freq_to_string" corresponds="icalrecur_freq_to_string" since="2.0">
- <parameter type="ICalRecurrenceTypeFrequency" name="kind" comment="The freqeuncy enum"/>
+ <parameter type="ICalRecurrenceFrequency" name="kind" comment="The freqeuncy enum"/>
<returns type="const gchar *" comment="The string representation of frequency"/>
<comment xml:space="preserve">Convert a enum representation to a string representation for the frequency.</comment>
</method>
<method name="i_cal_recur_string_to_skip" corresponds="icalrecur_string_to_skip" since="2.0">
<parameter type="const gchar *" name="str" comment="The string representation of the skip."/>
- <returns type="ICalRecurrenceTypeSkip" comment="The enum representation of the skip."/>
+ <returns type="ICalRecurrenceSkip" comment="The enum representation of the skip."/>
<comment xml:space="preserve">Convert a string representation to an enum representation for the skip.</comment>
</method>
<method name="i_cal_recur_skip_to_string" corresponds="icalrecur_skip_to_string" since="2.0">
- <parameter type="ICalRecurrenceTypeSkip" name="kind" comment="The freqeuncy enum"/>
+ <parameter type="ICalRecurrenceSkip" name="kind" comment="The freqeuncy enum"/>
<returns type="const gchar *" comment="The string representation of skip"/>
<comment xml:space="preserve">Convert a enum representation to a string representation for the skip.</comment>
</method>
diff --git a/src/libical-glib/api/i-cal-recurrence-type.xml b/src/libical-glib/api/i-cal-recurrence.xml
index 98d41be7..43e1d385 100644
--- a/src/libical-glib/api/i-cal-recurrence-type.xml
+++ b/src/libical-glib/api/i-cal-recurrence.xml
@@ -13,8 +13,8 @@
You should have received a copy of the GNU Lesser General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.
-->
-<structure namespace="ICal" name="RecurrenceType" native="struct icalrecurrencetype" is_bare="true" default_native="i_cal_recurrence_type_new_default ()">
- <enum name="ICalRecurrenceTypeFrequency" native_name="icalrecurrencetype_frequency" default_native="I_CAL_NO_RECURRENCE">
+<structure namespace="ICal" name="Recurrence" native="struct icalrecurrencetype" is_bare="true" default_native="i_cal_recurrence_new_default ()">
+ <enum name="ICalRecurrenceFrequency" native_name="icalrecurrencetype_frequency" default_native="I_CAL_NO_RECURRENCE">
<element name="ICAL_SECONDLY_RECURRENCE"/>
<element name="ICAL_MINUTELY_RECURRENCE"/>
<element name="ICAL_HOURLY_RECURRENCE"/>
@@ -24,7 +24,7 @@
<element name="ICAL_YEARLY_RECURRENCE"/>
<element name="ICAL_NO_RECURRENCE"/>
</enum>
- <enum name="ICalRecurrenceTypeWeekday" native_name="icalrecurrencetype_weekday" default_native="I_CAL_NO_WEEKDAY">
+ <enum name="ICalRecurrenceWeekday" native_name="icalrecurrencetype_weekday" default_native="I_CAL_NO_WEEKDAY">
<element name="ICAL_NO_WEEKDAY"/>
<element name="ICAL_SUNDAY_WEEKDAY"/>
<element name="ICAL_MONDAY_WEEKDAY"/>
@@ -34,13 +34,13 @@
<element name="ICAL_FRIDAY_WEEKDAY"/>
<element name="ICAL_SATURDAY_WEEKDAY"/>
</enum>
- <enum name="ICalRecurrenceTypeSkip" native_name="icalrecurrencetype_skip" default_native="I_CAL_SKIP_UNDEFINED">
+ <enum name="ICalRecurrenceSkip" native_name="icalrecurrencetype_skip" default_native="I_CAL_SKIP_UNDEFINED">
<element name="ICAL_SKIP_BACKWARD"/>
<element name="ICAL_SKIP_FORWARD"/>
<element name="ICAL_SKIP_OMIT"/>
<element name="ICAL_SKIP_UNDEFINED"/>
</enum>
- <enum name="ICalRecurrenceTypeArrayMaxValues" native_name="enum icalrecurrence_array_max_values" default_native="I_CAL_RECURRENCE_ARRAY_MAX">
+ <enum name="ICalRecurrenceArrayMaxValues" native_name="enum icalrecurrence_array_max_values" default_native="I_CAL_RECURRENCE_ARRAY_MAX">
<element name="ICAL_RECURRENCE_ARRAY_MAX"/>
<!-- Skip this one, it confuses git generator (no name for the first,
because it's all part of this one. Furthermore, this one is not
@@ -49,7 +49,7 @@
-->
</enum>
<!-- Not a real enum, those are defines in libical -->
- <enum name="ICalRecurrenceTypeArraySizes" native_name="CUSTOM" default_native="I_CAL_BY_SECOND_SIZE">
+ <enum name="ICalRecurrenceArraySizes" native_name="CUSTOM" default_native="I_CAL_BY_SECOND_SIZE">
<element name="ICAL_BY_SECOND_SIZE"/>
<element name="ICAL_BY_MINUTE_SIZE"/>
<element name="ICAL_BY_HOUR_SIZE"/>
@@ -60,160 +60,160 @@
<element name="ICAL_BY_SETPOS_SIZE"/>
<element name="ICAL_BY_DAY_SIZE"/>
</enum>
- <method name="i_cal_recurrence_type_rscale_is_supported" corresponds="icalrecurrencetype_rscale_is_supported" kind="get" since="2.0">
+ <method name="i_cal_recurrence_rscale_is_supported" corresponds="icalrecurrencetype_rscale_is_supported" kind="get" since="2.0">
<returns type="gint" comment="Whether rscale is supported"/>
<comment xml:space="preserve">Check whether rscale is supported.</comment>
</method>
- <method name="i_cal_recurrence_type_rscale_supported_calendars" corresponds="icalrecurrencetype_rscale_supported_calendars" kind="other" since="2.0">
+ <method name="i_cal_recurrence_rscale_supported_calendars" corresponds="icalrecurrencetype_rscale_supported_calendars" kind="other" since="2.0">
<returns type="ICalArray *" annotation="transfer full" translator_argus="NULL, FALSE" comment="Array of calendars. Currently always NULL."/>
<comment xml:space="preserve">Get an array of calendars supporting rscale (currently always return NULL).</comment>
</method>
- <method name="i_cal_recurrence_type_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
+ <method name="i_cal_recurrence_new_default" corresponds="CUSTOM" annotation="skip" kind="private" since="1.0">
<returns type="struct icalrecurrencetype" comment="The default value."/>
<custom> struct icalrecurrencetype ret;
icalrecurrencetype_clear (&amp;ret);
return ret;</custom>
</method>
- <method name="i_cal_recurrence_type_new" corresponds="CUSTOM" kind="constructor" since="1.0">
- <returns type="ICalRecurrenceType *" annotation="transfer full" comment="The newly created #ICalRecurrenceType." />
- <comment xml:space="preserve">Create a new #ICalRecurrenceType.</comment>
- <custom> return i_cal_recurrence_type_new_full(i_cal_recurrence_type_new_default());</custom>
+ <method name="i_cal_recurrence_new" corresponds="CUSTOM" kind="constructor" since="1.0">
+ <returns type="ICalRecurrence *" annotation="transfer full" comment="The newly created #ICalRecurrence." />
+ <comment xml:space="preserve">Create a new #ICalRecurrence.</comment>
+ <custom> return i_cal_recurrence_new_full(i_cal_recurrence_new_default());</custom>
</method>
- <method name="i_cal_recurrence_type_clear" corresponds="icalrecurrencetype_clear" since="1.0">
- <parameter type="ICalRecurrenceType *" name="r" native_op="POINTER" comment="The #ICalRecurrenceType to be reset."/>
- <comment xml:space="preserve">Reset an #ICalRecurrenceType.</comment>
+ <method name="i_cal_recurrence_clear" corresponds="icalrecurrencetype_clear" since="1.0">
+ <parameter type="ICalRecurrence *" name="r" native_op="POINTER" comment="The #ICalRecurrence to be reset."/>
+ <comment xml:space="preserve">Reset an #ICalRecurrence.</comment>
</method>
- <method name="i_cal_recurrence_type_day_day_of_week" corresponds="icalrecurrencetype_day_day_of_week" since="1.0">
+ <method name="i_cal_recurrence_day_day_of_week" corresponds="icalrecurrencetype_day_day_of_week" since="1.0">
<parameter type="gshort" name="day" comment="The encoded day which represents the day of the week and Nth day of the week."/>
- <returns type="ICalRecurrenceTypeWeekday" comment="The decoded weekday with Monday to be 1."/>
+ <returns type="ICalRecurrenceWeekday" comment="The decoded weekday with Monday to be 1."/>
<comment xml:space="preserve">Decode a day to a weekday in a week.</comment>
</method>
- <method name="i_cal_recurrence_type_day_position" corresponds="icalrecurrencetype_day_position" since="1.0">
+ <method name="i_cal_recurrence_day_position" corresponds="icalrecurrencetype_day_position" since="1.0">
<parameter type="gshort" name="day" comment="The encoded day which represents the day of the week and Nth day of the week."/>
<returns type="gint" comment="The decoded day of the week. 0 == any of day of week. 1 == first, 2 = second, -2 == second to last, etc"/>
<comment xml:space="preserve">Decode a day to a position of the weekday.</comment>
</method>
- <method name="i_cal_recurrence_type_encode_day" corresponds="icalrecurrencetype_encode_day" since="3.1">
- <parameter type="ICalRecurrenceTypeWeekday" name="weekday" comment="The #ICalRecurrenceTypeWeekday to use."/>
+ <method name="i_cal_recurrence_encode_day" corresponds="icalrecurrencetype_encode_day" since="3.1">
+ <parameter type="ICalRecurrenceWeekday" name="weekday" comment="The #ICalRecurrenceWeekday to use."/>
<parameter type="gint" name="position" comment="The position to use. 0 == any of day of week. 1 == first, 2 = second, -2 == second to last, etc"/>
<returns type="gshort" comment="Encoded @weekday and @position into a single value"/>
- <comment xml:space="preserve">Encodes the @weekday and @position into a single value, which can by split by i_cal_recurrence_type_day_day_of_week() and i_cal_recurrence_type_day_position().</comment>
+ <comment xml:space="preserve">Encodes the @weekday and @position into a single value, which can by split by i_cal_recurrence_day_day_of_week() and i_cal_recurrence_day_position().</comment>
</method>
- <method name="i_cal_recurrence_type_month_is_leap" corresponds="icalrecurrencetype_month_is_leap" since="2.0">
+ <method name="i_cal_recurrence_month_is_leap" corresponds="icalrecurrencetype_month_is_leap" since="2.0">
<parameter type="gshort" name="month" comment="The month to be decoded."/>
<returns type="gint" comment="Whether this month is a leap month."/>
<comment xml:space="preserve">Decode a month and check whether it is a leap month.</comment>
</method>
- <method name="i_cal_recurrence_type_month_month" corresponds="icalrecurrencetype_month_month" since="2.0">
+ <method name="i_cal_recurrence_month_month" corresponds="icalrecurrencetype_month_month" since="2.0">
<parameter type="gshort" name="month" comment="The month to be decoded."/>
<returns type="gint" comment="The actual month number regardless of the leap flag."/>
- <comment xml:space="preserve">Decode a month from an encoded value by i_cal_recurrence_type_encode_month().</comment>
+ <comment xml:space="preserve">Decode a month from an encoded value by i_cal_recurrence_encode_month().</comment>
</method>
- <method name="i_cal_recurrence_type_encode_month" corresponds="icalrecurrencetype_encode_month" since="3.1">
+ <method name="i_cal_recurrence_encode_month" corresponds="icalrecurrencetype_encode_month" since="3.1">
<parameter type="gint" name="month" comment="The month to be encoded."/>
<parameter type="gboolean" name="is_leap" comment="%TRUE, when the month is leap, %FALSE otherwise."/>
<returns type="gshort" comment="Encoded @month and @is_leap."/>
- <comment xml:space="preserve">Encodes the @month and the @is_leap flag into a single value, which can be split by i_cal_recurrence_type_month_is_leap() and i_cal_recurrence_type_month_month().</comment>
+ <comment xml:space="preserve">Encodes the @month and the @is_leap flag into a single value, which can be split by i_cal_recurrence_month_is_leap() and i_cal_recurrence_month_month().</comment>
</method>
- <method name="i_cal_recurrence_type_from_string" corresponds="icalrecurrencetype_from_string" since="1.0">
- <parameter type="const gchar *" name="str" comment="The string representation of the #ICalRecurrenceType"/>
- <returns type="ICalRecurrenceType *" annotation="transfer full" comment="The #ICalRecurrenceType converted from @str."/>
- <comment xml:space="preserve">Convert a string to a #ICalRecurrenceType.</comment>
+ <method name="i_cal_recurrence_from_string" corresponds="icalrecurrencetype_from_string" since="1.0">
+ <parameter type="const gchar *" name="str" comment="The string representation of the #ICalRecurrence"/>
+ <returns type="ICalRecurrence *" annotation="transfer full" comment="The #ICalRecurrence converted from @str."/>
+ <comment xml:space="preserve">Convert a string to a #ICalRecurrence.</comment>
</method>
- <method name="i_cal_recurrence_type_as_string_r" corresponds="icalrecurrencetype_as_string_r" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" native_op="POINTER" comment="The #ICalRecurrenceType to be converted."/>
+ <method name="i_cal_recurrence_as_string_r" corresponds="icalrecurrencetype_as_string_r" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" native_op="POINTER" comment="The #ICalRecurrence to be converted."/>
<returns type="gchar *" annotation="transfer full" comment="The string representation of @recur."/>
- <comment xml:space="preserve">Convert a #ICalRecurrenceType to a string.</comment>
+ <comment xml:space="preserve">Convert a #ICalRecurrence to a string.</comment>
</method>
- <method name="i_cal_recurrence_type_get_until" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="ICalTime *" annotation="transfer full" comment="The until of #ICalRecurrenceType."/>
- <comment>Get the until from #ICalRecurrenceType.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ <method name="i_cal_recurrence_get_until" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="ICalTime *" annotation="transfer full" comment="The until of #ICalRecurrence."/>
+ <comment>Get the until from #ICalRecurrence.</comment>
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
return i_cal_time_new_full (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->until);</custom>
</method>
- <method name="i_cal_recurrence_type_set_until" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="ICalTime *" name="until" comment="The until of #ICalRecurrenceType."/>
- <comment>Set the until from #ICalRecurrenceType.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_until" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="ICalTime *" name="until" comment="The until of #ICalRecurrence."/>
+ <comment>Set the until from #ICalRecurrence.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (until != NULL &amp;&amp; I_CAL_IS_TIME(until));
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->until = *(icaltimetype *)i_cal_object_get_native ((ICalObject *)until);</custom>
</method>
- <method name="i_cal_recurrence_type_get_freq" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="ICalRecurrenceTypeFrequency" comment="The freq of #ICalRecurrenceType."/>
- <comment>Get the freq from #ICalRecurrenceType.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), I_CAL_NO_RECURRENCE);
- return (ICalRecurrenceTypeFrequency) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->freq);</custom>
- </method>
- <method name="i_cal_recurrence_type_set_freq" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="ICalRecurrenceTypeFrequency" name="freq" comment="The freq of #ICalRecurrenceType."/>
- <comment>Set the freq from #ICalRecurrenceType.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_get_freq" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="ICalRecurrenceFrequency" comment="The freq of #ICalRecurrence."/>
+ <comment>Get the freq from #ICalRecurrence.</comment>
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), I_CAL_NO_RECURRENCE);
+ return (ICalRecurrenceFrequency) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->freq);</custom>
+ </method>
+ <method name="i_cal_recurrence_set_freq" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="ICalRecurrenceFrequency" name="freq" comment="The freq of #ICalRecurrence."/>
+ <comment>Set the freq from #ICalRecurrence.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
((struct icalrecurrencetype *) i_cal_object_get_native ((ICalObject *)recur))->freq = (icalrecurrencetype_frequency) freq;</custom>
</method>
- <method name="i_cal_recurrence_type_get_count" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="gint" comment="The count of #ICalRecurrenceType."/>
- <comment>Get the count from #ICalRecurrenceType.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), 0);
+ <method name="i_cal_recurrence_get_count" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="gint" comment="The count of #ICalRecurrence."/>
+ <comment>Get the count from #ICalRecurrence.</comment>
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), 0);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->count;</custom>
</method>
- <method name="i_cal_recurrence_type_set_count" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="gint" name="count" comment="The count of #ICalRecurrenceType."/>
- <comment>Set the count from #ICalRecurrenceType.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_count" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="gint" name="count" comment="The count of #ICalRecurrence."/>
+ <comment>Set the count from #ICalRecurrence.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->count = count;</custom>
</method>
- <method name="i_cal_recurrence_type_get_interval" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="gshort" comment="The interval of #ICalRecurrenceType."/>
- <comment>Get the interval from #ICalRecurrenceType.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), 0);
+ <method name="i_cal_recurrence_get_interval" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="gshort" comment="The interval of #ICalRecurrence."/>
+ <comment>Get the interval from #ICalRecurrence.</comment>
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), 0);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->interval;</custom>
</method>
- <method name="i_cal_recurrence_type_set_interval" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="gshort" name="interval" comment="The interval of #ICalRecurrenceType."/>
- <comment>Set the interval from #ICalRecurrenceType.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_interval" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="gshort" name="interval" comment="The interval of #ICalRecurrence."/>
+ <comment>Set the interval from #ICalRecurrence.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->interval = interval;</custom>
</method>
- <method name="i_cal_recurrence_type_get_week_start" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="ICalRecurrenceTypeWeekday" comment="The week_start of #ICalRecurrenceType."/>
- <comment>Get the week_start from #ICalRecurrenceType.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), I_CAL_NO_WEEKDAY);
- return (ICalRecurrenceTypeWeekday) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->week_start);</custom>
- </method>
- <method name="i_cal_recurrence_type_set_week_start" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="ICalRecurrenceTypeWeekday" name="week_start" comment="The week_start of #ICalRecurrenceType."/>
- <comment>Set the week_start from #ICalRecurrenceType.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_get_week_start" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="ICalRecurrenceWeekday" comment="The week_start of #ICalRecurrence."/>
+ <comment>Get the week_start from #ICalRecurrence.</comment>
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), I_CAL_NO_WEEKDAY);
+ return (ICalRecurrenceWeekday) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->week_start);</custom>
+ </method>
+ <method name="i_cal_recurrence_set_week_start" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="ICalRecurrenceWeekday" name="week_start" comment="The week_start of #ICalRecurrence."/>
+ <comment>Set the week_start from #ICalRecurrence.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->week_start = (icalrecurrencetype_weekday) week_start;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_second_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_second of #ICalRecurrenceType."/>
- <comment>Get the by_second array from #ICalRecurrenceType. The array size if I_CAL_BY_SECOND_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_second_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_second of #ICalRecurrence."/>
+ <comment>Get the by_second array from #ICalRecurrence. The array size if I_CAL_BY_SECOND_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, TRUE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second, ICAL_BY_SECOND_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_second_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_second_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_second array in @recur at once. The array size can be less than I_CAL_BY_SECOND_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -225,42 +225,42 @@
if(ii &lt; ICAL_BY_SECOND_SIZE)
rt->by_second[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_second" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_second of #ICalRecurrenceType, less than %I_CAL_BY_SECOND_SIZE."/>
- <returns type="gshort" comment="The by_second of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_second" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_second of #ICalRecurrence, less than %I_CAL_BY_SECOND_SIZE."/>
+ <returns type="gshort" comment="The by_second of #ICalRecurrence at index @index."/>
<comment>Get the by_second value at index @index. The index should be less than %I_CAL_BY_SECOND_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_SECOND_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_second" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_second of #ICalRecurrenceType, less than I_CAL_BY_SECOND_SIZE."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_second of #ICalRecurrenceType."/>
- <comment>Set the by_second array from #ICalRecurrenceType at the given index. The array size is I_CAL_BY_SECOND_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_second" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_second of #ICalRecurrence, less than I_CAL_BY_SECOND_SIZE."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_second of #ICalRecurrence."/>
+ <comment>Set the by_second array from #ICalRecurrence at the given index. The array size is I_CAL_BY_SECOND_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_SECOND_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_minute_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_minute of #ICalRecurrenceType."/>
- <comment>Get the by_minute array from #ICalRecurrenceType. The array size is ICAL_BY_MINUTE_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_minute_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_minute of #ICalRecurrence."/>
+ <comment>Get the by_minute array from #ICalRecurrence. The array size is ICAL_BY_MINUTE_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute, ICAL_BY_MINUTE_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_minute_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_minute_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_minute array in @recur at once. The array size can be less than I_CAL_BY_MINUTE_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -272,42 +272,42 @@
if(ii &lt; ICAL_BY_MINUTE_SIZE)
rt->by_minute[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_minute" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_minute of #ICalRecurrenceType, less than %I_CAL_BY_MINUTE_SIZE."/>
- <returns type="gshort" comment="The by_minute of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_minute" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_minute of #ICalRecurrence, less than %I_CAL_BY_MINUTE_SIZE."/>
+ <returns type="gshort" comment="The by_minute of #ICalRecurrence at index @index."/>
<comment>Get the by_minute value at index @index. The index should be less than %I_CAL_BY_MINUTE_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_MINUTE_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_minute" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_minute of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_minute of #ICalRecurrenceType."/>
- <comment>Set the by_minute array from #ICalRecurrenceType at the given index. The array size is ICAL_BY_MINUTE_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_minute" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_minute of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_minute of #ICalRecurrence."/>
+ <comment>Set the by_minute array from #ICalRecurrence at the given index. The array size is ICAL_BY_MINUTE_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_MINUTE_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_hour_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_hour of #ICalRecurrenceType."/>
- <comment>Get the by_hour array from #ICalRecurrenceType. The array size is I_CAL_BY_HOUR_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_hour_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_hour of #ICalRecurrence."/>
+ <comment>Get the by_hour array from #ICalRecurrence. The array size is I_CAL_BY_HOUR_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour, ICAL_BY_HOUR_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_hour_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_hour_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_hour array in @recur at once. The array size can be less than I_CAL_BY_HOUR_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -319,42 +319,42 @@
if(ii &lt; ICAL_BY_HOUR_SIZE)
rt->by_hour[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_hour" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_hour of #ICalRecurrenceType, less than %I_CAL_BY_HOUR_SIZE."/>
- <returns type="gshort" comment="The by_hour of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_hour" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_hour of #ICalRecurrence, less than %I_CAL_BY_HOUR_SIZE."/>
+ <returns type="gshort" comment="The by_hour of #ICalRecurrence at index @index."/>
<comment>Get the by_hour value at index @index. The index should be less than %I_CAL_BY_HOUR_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_HOUR_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_hour" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_hour of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_hour of #ICalRecurrenceType."/>
- <comment>Set the by_hour array from #ICalRecurrenceType at the given index. The array size is I_CAL_BY_HOUR_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_hour" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_hour of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_hour of #ICalRecurrence."/>
+ <comment>Set the by_hour array from #ICalRecurrence at the given index. The array size is I_CAL_BY_HOUR_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_HOUR_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_day_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_day of #ICalRecurrenceType."/>
- <comment>Get the by_day array from #ICalRecurrenceType. The array size is ICAL_BY_DAY_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_day_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_day of #ICalRecurrence."/>
+ <comment>Get the by_day array from #ICalRecurrence. The array size is ICAL_BY_DAY_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day, ICAL_BY_DAY_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_day_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_day_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_day array in @recur at once. The array size can be less than I_CAL_BY_DAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -366,42 +366,42 @@
if(ii &lt; ICAL_BY_DAY_SIZE)
rt->by_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_day" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_day of #ICalRecurrenceType, less than %I_CAL_BY_DAY_SIZE."/>
- <returns type="gshort" comment="The by_day of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_day" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_day of #ICalRecurrence, less than %I_CAL_BY_DAY_SIZE."/>
+ <returns type="gshort" comment="The by_day of #ICalRecurrence at index @index."/>
<comment>Get the by_day value at index @index. The index should be less than %I_CAL_BY_DAY_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_DAY_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_day" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_day of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_day of #ICalRecurrenceType."/>
- <comment>Set the by_day array from #ICalRecurrenceType at the given index. The array size if ICAL_BY_DAY_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_day" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_day of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_day of #ICalRecurrence."/>
+ <comment>Set the by_day array from #ICalRecurrence at the given index. The array size if ICAL_BY_DAY_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_DAY_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_month_day_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_month_day of #ICalRecurrenceType."/>
- <comment>Get the by_month_day array from #ICalRecurrenceType. The array size is I_CAL_BY_MONTHDAY_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_month_day_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_month_day of #ICalRecurrence."/>
+ <comment>Get the by_month_day array from #ICalRecurrence. The array size is I_CAL_BY_MONTHDAY_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day, ICAL_BY_MONTHDAY_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_month_day_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_month_day_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_month_day array in @recur at once. The array size can be less than I_CAL_BY_MONTHDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -413,42 +413,42 @@
if(ii &lt; ICAL_BY_MONTHDAY_SIZE)
rt->by_month_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_month_day" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_month_day of #ICalRecurrenceType, less than %I_CAL_BY_MONTHDAY_SIZE."/>
- <returns type="gshort" comment="The by_month_day of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_month_day" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_month_day of #ICalRecurrence, less than %I_CAL_BY_MONTHDAY_SIZE."/>
+ <returns type="gshort" comment="The by_month_day of #ICalRecurrence at index @index."/>
<comment>Get the by_month_day value at index @index. The index should be less than %I_CAL_BY_MONTHDAY_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_MONTHDAY_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_month_day" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_month_day of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_month_day of #ICalRecurrenceType."/>
- <comment>Set the by_month_day array from #ICalRecurrenceType at the given index. The array size if ICAL_BY_MONTHDAY_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_month_day" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_month_day of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_month_day of #ICalRecurrence."/>
+ <comment>Set the by_month_day array from #ICalRecurrence at the given index. The array size if ICAL_BY_MONTHDAY_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_MONTHDAY_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_year_day_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_year_day of #ICalRecurrenceType."/>
- <comment>Get the by_year_day array from #ICalRecurrenceType. The array size is I_CAL_BY_YEARDAY_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_year_day_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_year_day of #ICalRecurrence."/>
+ <comment>Get the by_year_day array from #ICalRecurrence. The array size is I_CAL_BY_YEARDAY_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day, ICAL_BY_YEARDAY_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_year_day_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_year_day_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_year_day array in @recur at once. The array size can be less than I_CAL_BY_YEARDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -460,42 +460,42 @@
if(ii &lt; ICAL_BY_YEARDAY_SIZE)
rt->by_year_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_year_day" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_year_day of #ICalRecurrenceType, less than %I_CAL_BY_YEARDAY_SIZE."/>
- <returns type="gshort" comment="The by_year_day of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_year_day" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_year_day of #ICalRecurrence, less than %I_CAL_BY_YEARDAY_SIZE."/>
+ <returns type="gshort" comment="The by_year_day of #ICalRecurrence at index @index."/>
<comment>Get the by_year_day value at index @index. The index should be less than %I_CAL_BY_YEARDAY_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_YEARDAY_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_year_day" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_year_day of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_year_day of #ICalRecurrenceType."/>
- <comment>Set the by_year_day array from #ICalRecurrenceType at the given index. The array size if ICAL_BY_YEARDAY_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_year_day" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_year_day of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_year_day of #ICalRecurrence."/>
+ <comment>Set the by_year_day array from #ICalRecurrence at the given index. The array size if ICAL_BY_YEARDAY_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_YEARDAY_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_week_no_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_week_no of #ICalRecurrenceType."/>
- <comment>Get the by_week_no array from #ICalRecurrenceType. The array size is I_CAL_BY_WEEKNO_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_week_no_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_week_no of #ICalRecurrence."/>
+ <comment>Get the by_week_no array from #ICalRecurrence. The array size is I_CAL_BY_WEEKNO_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no, ICAL_BY_WEEKNO_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_week_no_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_week_no_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_week_no array in @recur at once. The array size can be less than I_CAL_BY_WEEKNO_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -507,42 +507,42 @@
if(ii &lt; ICAL_BY_WEEKNO_SIZE)
rt->by_week_no[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_week_no" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_week_no of #ICalRecurrenceType, less than %I_CAL_BY_WEEKNO_SIZE."/>
- <returns type="gshort" comment="The by_week_no of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_week_no" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_week_no of #ICalRecurrence, less than %I_CAL_BY_WEEKNO_SIZE."/>
+ <returns type="gshort" comment="The by_week_no of #ICalRecurrence at index @index."/>
<comment>Get the by_week_no value at index @index. The index should be less than %I_CAL_BY_WEEKNO_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_WEEKNO_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_week_no" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_week_no of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_week_no of #ICalRecurrenceType."/>
- <comment>Set the by_week_no array from #ICalRecurrenceType at the given index. The array size is I_CAL_BY_WEEKNO_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_week_no" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_week_no of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_week_no of #ICalRecurrence."/>
+ <comment>Set the by_week_no array from #ICalRecurrence at the given index. The array size is I_CAL_BY_WEEKNO_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_WEEKNO_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_month_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_month of #ICalRecurrenceType."/>
- <comment>Get the by_month array from #ICalRecurrenceType. The array size is I_CAL_BY_MONTH_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_month_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_month of #ICalRecurrence."/>
+ <comment>Get the by_month array from #ICalRecurrence. The array size is I_CAL_BY_MONTH_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month, ICAL_BY_MONTH_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_month_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_month_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_month array in @recur at once. The array size can be less than I_CAL_BY_MONTH_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -554,42 +554,42 @@
if(ii &lt; ICAL_BY_MONTH_SIZE)
rt->by_month[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_month" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_month of #ICalRecurrenceType, less than %I_CAL_BY_MONTH_SIZE."/>
- <returns type="gshort" comment="The by_month of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_month" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_month of #ICalRecurrence, less than %I_CAL_BY_MONTH_SIZE."/>
+ <returns type="gshort" comment="The by_month of #ICalRecurrence at index @index."/>
<comment>Get the by_month value at index @index. The index should be less than %I_CAL_BY_MONTH_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_MONTH_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_month" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_month of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_month of #ICalRecurrenceType."/>
- <comment>Set the by_month array from #ICalRecurrenceType at the given index. The array size is I_CAL_BY_MONTH_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_month" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_month of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_month of #ICalRecurrence."/>
+ <comment>Set the by_month array from #ICalRecurrence at the given index. The array size is I_CAL_BY_MONTH_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_MONTH_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month[index] = value;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_set_pos_array" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_set_pos of #ICalRecurrenceType."/>
- <comment>Get the by_set_pos array from #ICalRecurrenceType. The array size is I_CAL_BY_SETPOS_SIZE.</comment>
+ <method name="i_cal_recurrence_get_by_set_pos_array" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <returns type="GArray *" annotation="transfer full, element-type gshort" comment="The by_set_pos of #ICalRecurrence."/>
+ <comment>Get the by_set_pos array from #ICalRecurrence. The array size is I_CAL_BY_SETPOS_SIZE.</comment>
<custom> GArray *array;
- g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), NULL);
+ g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), NULL);
array = g_array_new (FALSE, FALSE, sizeof (gshort));
g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos, ICAL_BY_SETPOS_SIZE);
return array;</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_set_pos_array" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
+ <method name="i_cal_recurrence_set_by_set_pos_array" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
<parameter type="GArray *" name="values" annotation="element-type gshort" comment="The array of values."/>
<comment>Set the by_set_pos array in @recur at once. The array size can be less than I_CAL_BY_SETPOS_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.</comment>
<custom> struct icalrecurrencetype *rt;
guint ii;
- g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ g_return_if_fail(recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail(values != NULL);
rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur);
@@ -601,21 +601,21 @@
if(ii &lt; ICAL_BY_SETPOS_SIZE)
rt->by_set_pos[ii] = I_CAL_RECURRENCE_ARRAY_MAX;</custom>
</method>
- <method name="i_cal_recurrence_type_get_by_set_pos" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_set_pos of #ICalRecurrenceType, less than %I_CAL_BY_SETPOS_SIZE."/>
- <returns type="gshort" comment="The by_week_no of #ICalRecurrenceType at index @index."/>
+ <method name="i_cal_recurrence_get_by_set_pos" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_set_pos of #ICalRecurrence, less than %I_CAL_BY_SETPOS_SIZE."/>
+ <returns type="gshort" comment="The by_week_no of #ICalRecurrence at index @index."/>
<comment>Get the by_set_pos value at index @index. The index should be less than %I_CAL_BY_SETPOS_SIZE.</comment>
- <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur), ICAL_RECURRENCE_ARRAY_MAX);
+ <custom> g_return_val_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur), ICAL_RECURRENCE_ARRAY_MAX);
g_return_val_if_fail (index &lt; ICAL_BY_SETPOS_SIZE, ICAL_RECURRENCE_ARRAY_MAX);
return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos[index];</custom>
</method>
- <method name="i_cal_recurrence_type_set_by_set_pos" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalRecurrenceType *" name="recur" comment="The #ICalRecurrenceType."/>
- <parameter type="guint" name="index" comment="The index in by_set_pos of #ICalRecurrenceType."/>
- <parameter type="gshort" name="value" comment="The value to be set into by_set_pos of #ICalRecurrenceType."/>
- <comment>Set the by_set_pos array from #ICalRecurrenceType at the given index. The array size is I_CAL_BY_SETPOS_SIZE.</comment>
- <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE_TYPE (recur));
+ <method name="i_cal_recurrence_set_by_set_pos" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalRecurrence *" name="recur" comment="The #ICalRecurrence."/>
+ <parameter type="guint" name="index" comment="The index in by_set_pos of #ICalRecurrence."/>
+ <parameter type="gshort" name="value" comment="The value to be set into by_set_pos of #ICalRecurrence."/>
+ <comment>Set the by_set_pos array from #ICalRecurrence at the given index. The array size is I_CAL_BY_SETPOS_SIZE.</comment>
+ <custom> g_return_if_fail (recur != NULL &amp;&amp; I_CAL_IS_RECURRENCE (recur));
g_return_if_fail (index &lt; ICAL_BY_SETPOS_SIZE);
((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos[index] = value;</custom>
</method>
diff --git a/src/libical-glib/api/i-cal-reqstat-type.xml b/src/libical-glib/api/i-cal-reqstat.xml
index b83c1d6d..bc234565 100644
--- a/src/libical-glib/api/i-cal-reqstat-type.xml
+++ b/src/libical-glib/api/i-cal-reqstat.xml
@@ -13,52 +13,52 @@
You should have received a copy of the GNU Lesser General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.
-->
-<structure namespace="ICal" name="ReqstatType" native="struct icalreqstattype" is_bare="true" default_native="i_cal_reqstat_type_new_default ()">
- <method name="i_cal_reqstat_type_from_string" corresponds="icalreqstattype_from_string" kind="constructor" since="">
+<structure namespace="ICal" name="Reqstat" native="struct icalreqstattype" is_bare="true" default_native="i_cal_reqstat_new_default ()">
+ <method name="i_cal_reqstat_from_string" corresponds="icalreqstattype_from_string" kind="constructor" since="">
<parameter type="const gchar *" name="str" comment="A string."/>
- <returns type="ICalReqstatType *" annotation="transfer full" comment="The newly created #ICalReqstatType."/>
- <comment xml:space="preserve">Create a #ICalReqstatType from string.</comment>
+ <returns type="ICalReqstat *" annotation="transfer full" comment="The newly created #ICalReqstat."/>
+ <comment xml:space="preserve">Create a #ICalReqstat from string.</comment>
</method>
- <method name="i_cal_reqstat_type_as_string_r" corresponds="icalreqstattype_as_string_r" since="">
- <parameter type="ICalReqstatType *" name="stat" comment="A #ICalReqstatType."/>
+ <method name="i_cal_reqstat_as_string_r" corresponds="icalreqstattype_as_string_r" since="">
+ <parameter type="ICalReqstat *" name="stat" comment="A #ICalReqstat."/>
<returns type="gchar *" annotation="transfer full" comment="A string."/>
- <comment xml:space="preserve">Convert #ICalReqstatType to a string representation.</comment>
+ <comment xml:space="preserve">Convert #ICalReqstat to a string representation.</comment>
</method>
- <method name="i_cal_reqstat_type_new_default" corresponds="CUSTOM" kind="private" since="1.0">
- <returns type="struct icalreqstattype" annotation="transfer full" comment="The newly created #ICalReqstatType" />
- <comment xml:space="preserve">Create a new default #ICalReqstatType</comment>
+ <method name="i_cal_reqstat_new_default" corresponds="CUSTOM" kind="private" since="1.0">
+ <returns type="struct icalreqstattype" annotation="transfer full" comment="The newly created #ICalReqstat" />
+ <comment xml:space="preserve">Create a new default #ICalReqstat</comment>
<custom> struct icalreqstattype reqstattype;
reqstattype.code = ICAL_UNKNOWN_STATUS;
reqstattype.desc = NULL;
reqstattype.debug = NULL;
return reqstattype;</custom>
</method>
- <method name="i_cal_reqstat_type_get_code" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalReqstatType *" name="reqstat" comment="The #ICalReqstatType."/>
+ <method name="i_cal_reqstat_get_code" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalReqstat *" name="reqstat" comment="The #ICalReqstat."/>
<returns type="ICalRequestStatus" comment="The code of @reqstat."/>
- <comment>Get the code of #ICalReqstatType.</comment>
- <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT_TYPE (reqstat), I_CAL_UNKNOWN_STATUS);
+ <comment>Get the code of #ICalReqstat.</comment>
+ <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), I_CAL_UNKNOWN_STATUS);
return (ICalRequestStatus) (((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->code);</custom>
</method>
- <method name="i_cal_reqstat_type_set_code" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalReqstatType *" name="reqstat" comment="The #ICalReqstatType."/>
+ <method name="i_cal_reqstat_set_code" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalReqstat *" name="reqstat" comment="The #ICalReqstat."/>
<parameter type="ICalRequestStatus" name="code" comment="The code of @reqstat."/>
- <comment>Set the code of #ICalReqstatType.</comment>
- <custom> g_return_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT_TYPE (reqstat));
+ <comment>Set the code of #ICalReqstat.</comment>
+ <custom> g_return_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat));
((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->code = (icalrequeststatus) (code);</custom>
</method>
- <method name="i_cal_reqstat_type_get_desc" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalReqstatType *" name="reqstat" comment="The #ICalReqstatType."/>
+ <method name="i_cal_reqstat_get_desc" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="const ICalReqstat *" name="reqstat" comment="The #ICalReqstat."/>
<returns type="const gchar *" annotation="transfer none" comment="The desc of @reqstat."/>
- <comment>Get the desc of #ICalReqstatType.</comment>
- <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT_TYPE (reqstat), NULL);
+ <comment>Get the desc of #ICalReqstat.</comment>
+ <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), NULL);
return ((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->desc;</custom>
</method>
- <method name="i_cal_reqstat_type_get_debug" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalReqstatType *" name="reqstat" comment="The #ICalReqstatType."/>
+ <method name="i_cal_reqstat_get_debug" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="const ICalReqstat *" name="reqstat" comment="The #ICalReqstat."/>
<returns type="const gchar *" annotation="transfer none" comment="The debug of @reqstat."/>
- <comment>Get the debug of #ICalReqstatType.</comment>
- <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT_TYPE (reqstat), NULL);
+ <comment>Get the debug of #ICalReqstat.</comment>
+ <custom> g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), NULL);
return ((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->debug;</custom>
</method>
</structure>
diff --git a/src/libical-glib/api/i-cal-time.xml b/src/libical-glib/api/i-cal-time.xml
index 9eadb60d..fedbb897 100644
--- a/src/libical-glib/api/i-cal-time.xml
+++ b/src/libical-glib/api/i-cal-time.xml
@@ -241,14 +241,14 @@
</method>
<method name="i_cal_time_add" corresponds="icaltime_add" kind="other" since="2.0">
<parameter type="ICalTime *" name="t" comment="A #ICalTime to be operated on."/>
- <parameter type="ICalDurationType *" name="d" comment="A #ICalDuarationType as the difference."/>
+ <parameter type="ICalDuration *" name="d" comment="A #ICalDuarationType as the difference."/>
<returns type="ICalTime *" annotation="transfer full" comment="The #ICalTime results. The native object is the same. But since it is a bare object, so it won't cause segmentation."/>
<comment xml:space="preserve">Add a time duration on the time.</comment>
</method>
<method name="i_cal_time_subtract" corresponds="icaltime_subtract" kind="other" since="2.0">
<parameter type="ICalTime *" name="t1" comment="The subtracted #ICalTime."/>
<parameter type="ICalTime *" name="t2" comment="The subtracting #ICalTime."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="The #ICalDuarationType between two #ICalTime."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="The #ICalDuarationType between two #ICalTime."/>
<comment xml:space="preserve">Get the duration between two time.</comment>
</method>
<method name="i_cal_time_get_year" corresponds="CUSTOM" kind="get" since="1.0">
diff --git a/src/libical-glib/api/i-cal-timezone-phase.xml b/src/libical-glib/api/i-cal-timezone-phase.xml
index 145b2c00..e5ab0ba5 100644
--- a/src/libical-glib/api/i-cal-timezone-phase.xml
+++ b/src/libical-glib/api/i-cal-timezone-phase.xml
@@ -13,7 +13,7 @@
You should have received a copy of the GNU Lesser General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.
-->
-<structure namespace="ICal" name="TimezonePhase" native="struct icaltimezonephase" is_bare="true" default_native="i_cal_timezone_phase_new_default ()" includes="libical-glib/i-cal-time.h, libical-glib/i-cal-datetimeperiod-type.h">
+<structure namespace="ICal" name="TimezonePhase" native="struct icaltimezonephase" is_bare="true" default_native="i_cal_timezone_phase_new_default ()" includes="libical-glib/i-cal-time.h, libical-glib/i-cal-datetimeperiod.h">
<method name="i_cal_timezone_phase_new_default" corresponds="CUSTOM" kind="private" since="1.0">
<returns type="struct icaltimezonephase" annotation="transfer full" comment="The newly created #ICalTimezonePhase" />
<comment xml:space="preserve">Create a new default #ICalTimezonePhase</comment>
@@ -24,7 +24,7 @@
timezonephase.offsetto = 0;
timezonephase.tzoffsetfrom = 0;
timezonephase.comment = NULL;
- timezonephase.rdate = i_cal_datetimeperiod_type_new_default ();
+ timezonephase.rdate = i_cal_datetimeperiod_new_default ();
timezonephase.rrule = NULL;
return timezonephase;</custom>
</method>
@@ -101,17 +101,17 @@
</method>
<method name="i_cal_timezone_phase_get_rdate" corresponds="CUSTOM" kind="get" since="1.0">
<parameter type="ICalTimezonePhase *" name="phase" comment="The #ICalTimezonePhase."/>
- <returns type="ICalDatetimeperiodType *" annotation="transfer full" comment="The rdate of #ICalTimezonePhase."/>
+ <returns type="ICalDatetimeperiod *" annotation="transfer full" comment="The rdate of #ICalTimezonePhase."/>
<comment>Get the rdate from #ICalTimezonePhase.</comment>
<custom> g_return_val_if_fail (phase != NULL &amp;&amp; I_CAL_IS_TIMEZONE_PHASE (phase), NULL);
- return i_cal_datetimeperiod_type_new_full (((struct icaltimezonephase *)i_cal_object_get_native ((ICalObject *)phase))->rdate);</custom>
+ return i_cal_datetimeperiod_new_full (((struct icaltimezonephase *)i_cal_object_get_native ((ICalObject *)phase))->rdate);</custom>
</method>
<method name="i_cal_timezone_phase_set_rdate" corresponds="CUSTOM" kind="set" since="1.0">
<parameter type="ICalTimezonePhase *" name="phase" comment="The #ICalTimezonePhase."/>
- <parameter type="ICalDatetimeperiodType *" name="rdate" comment="The rdate of #ICalTimezonePhase."/>
+ <parameter type="ICalDatetimeperiod *" name="rdate" comment="The rdate of #ICalTimezonePhase."/>
<comment>Set the rdate from #ICalTimezonePhase.</comment>
<custom> g_return_if_fail (phase != NULL &amp;&amp; I_CAL_IS_TIMEZONE_PHASE (phase));
- g_return_if_fail (rdate != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD_TYPE (rdate));
+ g_return_if_fail (rdate != NULL &amp;&amp; I_CAL_IS_DATETIMEPERIOD (rdate));
((struct icaltimezonephase *)i_cal_object_get_native ((ICalObject *)phase))->rdate = *(struct icaldatetimeperiodtype *)i_cal_object_get_native ((ICalObject *)rdate);</custom>
</method>
<method name="i_cal_timezone_phase_get_rrule" corresponds="CUSTOM" kind="get" since="1.0">
diff --git a/src/libical-glib/api/i-cal-trigger-type.xml b/src/libical-glib/api/i-cal-trigger-type.xml
deleted file mode 100644
index c50d903c..00000000
--- a/src/libical-glib/api/i-cal-trigger-type.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<!--
- Copyright (C) 2015 William Yu <williamyu@gnome.org>
-
- This library is free software: you can redistribute it and/or modify it
- under the terms of version 2.1. of the GNU Lesser General Public License
- as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
--->
-<structure namespace="ICal" name="TriggerType" native="struct icaltriggertype" is_bare="true" default_native="icaltriggertype_from_int (0)">
- <method name="i_cal_trigger_type_from_int" corresponds="icaltriggertype_from_int" kind="constructor" since="">
- <parameter type="const gint" name="reltime" comment="An integer."/>
- <returns type="ICalTriggerType *" annotation="transfer full" comment="The newly created #ICalTriggerType."/>
- <comment xml:space="preserve">Create a #ICalTriggerType from integer.</comment>
- </method>
- <method name="i_cal_trigger_type_from_string" corresponds="icaltriggertype_from_string" kind="constructor" since="">
- <parameter type="const gchar *" name="str" comment="A string."/>
- <returns type="ICalTriggerType *" annotation="transfer full" comment="The newly created #ICalTriggerType."/>
- <comment xml:space="preserve">Create a #ICalTriggerType from a string.</comment>
- </method>
- <method name="i_cal_trigger_type_is_null_trigger" corresponds="icaltriggertype_is_null_trigger" since="">
- <parameter type="ICalTriggerType *" name="tr" comment="A #ICalTriggerType."/>
- <returns type="gint" comment="1 if yes, 0 if not."/>
- <comment xml:space="preserve">Check if a #ICalTriggerType is a null trigger.</comment>
- </method>
- <method name="i_cal_trigger_type_is_bad_trigger" corresponds="icaltriggertype_is_bad_trigger" since="">
- <parameter type="ICalTriggerType *" name="tr" comment="A #ICalTriggerType."/>
- <returns type="gint" comment="1 if yes, 0 if not."/>
- <comment xml:space="preserve">Check if a #ICalTriggerType is a bad trigger.</comment>
- </method>
- <method name="i_cal_trigger_type_get_time" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalTriggerType *" name="trigger" comment="The #ICalTriggerType."/>
- <returns type="ICalTime *" annotation="transfer full" comment="The time of #ICalTriggerType."/>
- <comment>Get the time from #ICalTriggerType.</comment>
- <custom> g_return_val_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER_TYPE (trigger), NULL);
- return i_cal_time_new_full (((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->time);</custom>
- </method>
- <method name="i_cal_trigger_type_set_time" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalTriggerType *" name="trigger" comment="The #ICalTriggerType."/>
- <parameter type="ICalTime *" name="time" comment="The time of #ICalTriggerType."/>
- <comment>Set the time from #ICalTriggerType.</comment>
- <custom> g_return_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER_TYPE (trigger));
- g_return_if_fail (time != NULL &amp;&amp; I_CAL_IS_TIME(time));
- ((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->time = *(struct icaltimetype *)i_cal_object_get_native ((ICalObject *)time);</custom>
- </method>
- <method name="i_cal_trigger_type_get_duration" corresponds="CUSTOM" kind="get" since="1.0">
- <parameter type="ICalTriggerType *" name="trigger" comment="The #ICalTriggerType."/>
- <returns type="ICalDurationType *" annotation="transfer full" comment="The duration of #ICalTriggerType."/>
- <comment>Get the duration from #ICalTriggerType.</comment>
- <custom> g_return_val_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER_TYPE (trigger), NULL);
- return i_cal_duration_type_new_full (((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->duration);</custom>
- </method>
- <method name="i_cal_trigger_type_set_duration" corresponds="CUSTOM" kind="set" since="1.0">
- <parameter type="ICalTriggerType *" name="trigger" comment="The #ICalTriggerType."/>
- <parameter type="ICalDurationType *" name="duration" comment="The duration of #ICalTriggerType."/>
- <comment>Set the duration from #ICalTriggerType.</comment>
- <custom> g_return_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER_TYPE (trigger));
- g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION_TYPE (duration));
- ((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->duration = *(struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration);</custom>
- </method>
-</structure>
diff --git a/src/libical-glib/api/i-cal-trigger.xml b/src/libical-glib/api/i-cal-trigger.xml
new file mode 100644
index 00000000..65334500
--- /dev/null
+++ b/src/libical-glib/api/i-cal-trigger.xml
@@ -0,0 +1,67 @@
+<!--
+ Copyright (C) 2015 William Yu <williamyu@gnome.org>
+
+ This library is free software: you can redistribute it and/or modify it
+ under the terms of version 2.1. of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library. If not, see <http://www.gnu.org/licenses/>.
+-->
+<structure namespace="ICal" name="Trigger" native="struct icaltriggertype" is_bare="true" default_native="icaltriggertype_from_int (0)">
+ <method name="i_cal_trigger_from_int" corresponds="icaltriggertype_from_int" kind="constructor" since="">
+ <parameter type="const gint" name="reltime" comment="An integer."/>
+ <returns type="ICalTrigger *" annotation="transfer full" comment="The newly created #ICalTrigger."/>
+ <comment xml:space="preserve">Create a #ICalTrigger from integer.</comment>
+ </method>
+ <method name="i_cal_trigger_from_string" corresponds="icaltriggertype_from_string" kind="constructor" since="">
+ <parameter type="const gchar *" name="str" comment="A string."/>
+ <returns type="ICalTrigger *" annotation="transfer full" comment="The newly created #ICalTrigger."/>
+ <comment xml:space="preserve">Create a #ICalTrigger from a string.</comment>
+ </method>
+ <method name="i_cal_trigger_is_null_trigger" corresponds="icaltriggertype_is_null_trigger" since="">
+ <parameter type="ICalTrigger *" name="tr" comment="A #ICalTrigger."/>
+ <returns type="gint" comment="1 if yes, 0 if not."/>
+ <comment xml:space="preserve">Check if a #ICalTrigger is a null trigger.</comment>
+ </method>
+ <method name="i_cal_trigger_is_bad_trigger" corresponds="icaltriggertype_is_bad_trigger" since="">
+ <parameter type="ICalTrigger *" name="tr" comment="A #ICalTrigger."/>
+ <returns type="gint" comment="1 if yes, 0 if not."/>
+ <comment xml:space="preserve">Check if a #ICalTrigger is a bad trigger.</comment>
+ </method>
+ <method name="i_cal_trigger_get_time" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalTrigger *" name="trigger" comment="The #ICalTrigger."/>
+ <returns type="ICalTime *" annotation="transfer full" comment="The time of #ICalTrigger."/>
+ <comment>Get the time from #ICalTrigger.</comment>
+ <custom> g_return_val_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER (trigger), NULL);
+ return i_cal_time_new_full (((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->time);</custom>
+ </method>
+ <method name="i_cal_trigger_set_time" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalTrigger *" name="trigger" comment="The #ICalTrigger."/>
+ <parameter type="ICalTime *" name="time" comment="The time of #ICalTrigger."/>
+ <comment>Set the time from #ICalTrigger.</comment>
+ <custom> g_return_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER (trigger));
+ g_return_if_fail (time != NULL &amp;&amp; I_CAL_IS_TIME(time));
+ ((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->time = *(struct icaltimetype *)i_cal_object_get_native ((ICalObject *)time);</custom>
+ </method>
+ <method name="i_cal_trigger_get_duration" corresponds="CUSTOM" kind="get" since="1.0">
+ <parameter type="ICalTrigger *" name="trigger" comment="The #ICalTrigger."/>
+ <returns type="ICalDuration *" annotation="transfer full" comment="The duration of #ICalTrigger."/>
+ <comment>Get the duration from #ICalTrigger.</comment>
+ <custom> g_return_val_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER (trigger), NULL);
+ return i_cal_duration_new_full (((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->duration);</custom>
+ </method>
+ <method name="i_cal_trigger_set_duration" corresponds="CUSTOM" kind="set" since="1.0">
+ <parameter type="ICalTrigger *" name="trigger" comment="The #ICalTrigger."/>
+ <parameter type="ICalDuration *" name="duration" comment="The duration of #ICalTrigger."/>
+ <comment>Set the duration from #ICalTrigger.</comment>
+ <custom> g_return_if_fail (trigger != NULL &amp;&amp; I_CAL_IS_TRIGGER (trigger));
+ g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaltriggertype *)i_cal_object_get_native ((ICalObject *)trigger))->duration = *(struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration);</custom>
+ </method>
+</structure>
diff --git a/src/test/libical-glib/CMakeLists.txt b/src/test/libical-glib/CMakeLists.txt
index 91ccb5c9..c7b16655 100644
--- a/src/test/libical-glib/CMakeLists.txt
+++ b/src/test/libical-glib/CMakeLists.txt
@@ -7,13 +7,13 @@ list(APPEND TEST_FILES
attach.py
component.py
comprehensive.py
- duration-type.py
+ duration.py
error.py
misc.py
parameter.py
- period-type.py
+ period.py
property.py
- recurrence-type.py
+ recurrence.py
timezone.py
value.py
)
diff --git a/src/test/libical-glib/duration-type.py b/src/test/libical-glib/duration.py
index 8e2f8dca..6cfcdba2 100755
--- a/src/test/libical-glib/duration-type.py
+++ b/src/test/libical-glib/duration.py
@@ -27,16 +27,16 @@ from gi.repository import ICalGLib
length = 1000000000;
bad_string = "This is a bad string";
-duration = ICalGLib.DurationType.from_int(length);
+duration = ICalGLib.Duration.from_int(length);
assert(duration.as_int() == length);
length_in_string = duration.as_ical_string_r();
-duration1 = ICalGLib.DurationType.from_string(length_in_string);
+duration1 = ICalGLib.Duration.from_string(length_in_string);
assert(duration1.as_ical_string_r() == length_in_string);
assert(length == duration1.as_int());
-duration = ICalGLib.DurationType.from_string(bad_string);
-duration_bad = ICalGLib.DurationType.bad_duration();
+duration = ICalGLib.Duration.from_string(bad_string);
+duration_bad = ICalGLib.Duration.bad_duration();
assert(duration.as_ical_string_r() == duration_bad.as_ical_string_r());
assert(duration.is_bad_duration() == 1);
-duration_null = ICalGLib.DurationType.null_duration();
+duration_null = ICalGLib.Duration.null_duration();
assert(duration_null.is_null_duration() == 1);
diff --git a/src/test/libical-glib/misc.py b/src/test/libical-glib/misc.py
index f5ce5d90..b7772180 100755
--- a/src/test/libical-glib/misc.py
+++ b/src/test/libical-glib/misc.py
@@ -24,7 +24,7 @@ gi.require_version('ICalGLib', '3.0')
from gi.repository import ICalGLib
-geo = ICalGLib.GeoType.new(10.0, 20.0)
+geo = ICalGLib.Geo.new(10.0, 20.0)
assert geo.get_lat() == 10.0
assert geo.get_lon() == 20.0
geo_clone = geo.new_clone()
diff --git a/src/test/libical-glib/period-type.py b/src/test/libical-glib/period.py
index dd797e4f..bdcbfb7e 100755
--- a/src/test/libical-glib/period-type.py
+++ b/src/test/libical-glib/period.py
@@ -26,11 +26,11 @@ from gi.repository import ICalGLib
string = "19970101T183248Z/19970102T071625Z";
-period = ICalGLib.PeriodType.from_string(string);
+period = ICalGLib.Period.from_string(string);
retrieved_string = period.as_ical_string_r();
assert(retrieved_string == string);
-null_period = ICalGLib.PeriodType.null_period();
+null_period = ICalGLib.Period.null_period();
assert(null_period.is_null_period() == 1);
assert(period.is_null_period() == 0);
@@ -57,7 +57,7 @@ duration = period.get_duration();
assert(duration.as_int() == 0);
string = "19970101T182346Z/PT5H30M";
-period = ICalGLib.PeriodType.from_string(string);
+period = ICalGLib.Period.from_string(string);
retrieved_string = period.as_ical_string_r();
assert(retrieved_string == string);
diff --git a/src/test/libical-glib/recurrence-type.py b/src/test/libical-glib/recurrence.py
index b943410a..e5e99fb2 100755
--- a/src/test/libical-glib/recurrence-type.py
+++ b/src/test/libical-glib/recurrence.py
@@ -24,37 +24,37 @@ gi.require_version('ICalGLib', '3.0')
from gi.repository import ICalGLib
-weekday = ICalGLib.RecurrenceType.day_day_of_week(0)
-assert(weekday == ICalGLib.RecurrenceTypeWeekday.NO_WEEKDAY)
-weekday = ICalGLib.RecurrenceType.day_day_of_week(1)
-assert(weekday == ICalGLib.RecurrenceTypeWeekday.SUNDAY_WEEKDAY)
+weekday = ICalGLib.Recurrence.day_day_of_week(0)
+assert(weekday == ICalGLib.RecurrenceWeekday.NO_WEEKDAY)
+weekday = ICalGLib.Recurrence.day_day_of_week(1)
+assert(weekday == ICalGLib.RecurrenceWeekday.SUNDAY_WEEKDAY)
-assert(ICalGLib.RecurrenceType.day_position(15) == 1)
-assert(ICalGLib.RecurrenceType.day_position(16) == 2)
-assert(ICalGLib.RecurrenceType.day_position(25) == 3)
+assert(ICalGLib.Recurrence.day_position(15) == 1)
+assert(ICalGLib.Recurrence.day_position(16) == 2)
+assert(ICalGLib.Recurrence.day_position(25) == 3)
-encoded = ICalGLib.RecurrenceType.encode_day(ICalGLib.RecurrenceTypeWeekday.MONDAY_WEEKDAY, 0)
-assert(ICalGLib.RecurrenceType.day_day_of_week(encoded) == ICalGLib.RecurrenceTypeWeekday.MONDAY_WEEKDAY)
-assert(ICalGLib.RecurrenceType.day_position(encoded) == 0)
+encoded = ICalGLib.Recurrence.encode_day(ICalGLib.RecurrenceWeekday.MONDAY_WEEKDAY, 0)
+assert(ICalGLib.Recurrence.day_day_of_week(encoded) == ICalGLib.RecurrenceWeekday.MONDAY_WEEKDAY)
+assert(ICalGLib.Recurrence.day_position(encoded) == 0)
-encoded = ICalGLib.RecurrenceType.encode_day(ICalGLib.RecurrenceTypeWeekday.THURSDAY_WEEKDAY, -3)
-assert(ICalGLib.RecurrenceType.day_day_of_week(encoded) == ICalGLib.RecurrenceTypeWeekday.THURSDAY_WEEKDAY)
-assert(ICalGLib.RecurrenceType.day_position(encoded) == -3)
+encoded = ICalGLib.Recurrence.encode_day(ICalGLib.RecurrenceWeekday.THURSDAY_WEEKDAY, -3)
+assert(ICalGLib.Recurrence.day_day_of_week(encoded) == ICalGLib.RecurrenceWeekday.THURSDAY_WEEKDAY)
+assert(ICalGLib.Recurrence.day_position(encoded) == -3)
-encoded = ICalGLib.RecurrenceType.encode_day(ICalGLib.RecurrenceTypeWeekday.FRIDAY_WEEKDAY, 2)
-assert(ICalGLib.RecurrenceType.day_day_of_week(encoded) == ICalGLib.RecurrenceTypeWeekday.FRIDAY_WEEKDAY)
-assert(ICalGLib.RecurrenceType.day_position(encoded) == 2)
+encoded = ICalGLib.Recurrence.encode_day(ICalGLib.RecurrenceWeekday.FRIDAY_WEEKDAY, 2)
+assert(ICalGLib.Recurrence.day_day_of_week(encoded) == ICalGLib.RecurrenceWeekday.FRIDAY_WEEKDAY)
+assert(ICalGLib.Recurrence.day_position(encoded) == 2)
-encoded = ICalGLib.RecurrenceType.encode_month(3, 0)
-assert(ICalGLib.RecurrenceType.month_month(encoded) == 3)
-assert(not ICalGLib.RecurrenceType.month_is_leap(encoded))
+encoded = ICalGLib.Recurrence.encode_month(3, 0)
+assert(ICalGLib.Recurrence.month_month(encoded) == 3)
+assert(not ICalGLib.Recurrence.month_is_leap(encoded))
-encoded = ICalGLib.RecurrenceType.encode_month(12, 1)
-assert(ICalGLib.RecurrenceType.month_month(encoded) == 12)
-assert(ICalGLib.RecurrenceType.month_is_leap(encoded))
+encoded = ICalGLib.Recurrence.encode_month(12, 1)
+assert(ICalGLib.Recurrence.month_month(encoded) == 12)
+assert(ICalGLib.Recurrence.month_is_leap(encoded))
string = "COUNT=10;FREQ=DAILY"
-recurrence = ICalGLib.RecurrenceType.from_string(string)
+recurrence = ICalGLib.Recurrence.from_string(string)
assert(recurrence.as_string_r() == "FREQ=DAILY;COUNT=10")
by_second = recurrence.get_by_second_array()
@@ -83,174 +83,174 @@ by_set_pos = recurrence.get_by_set_pos_array()
assert len(by_set_pos) == 367 or len(by_set_pos) == 386
recurrence.set_by_second(0, 1)
-recurrence.set_by_second(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_second(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_second(0) == 1
-assert recurrence.get_by_second(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_second(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_second_array()
assert array[0] == 1
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 100, 101 ]
assert len(array) == 2
recurrence.set_by_second_array(array)
assert recurrence.get_by_second(0) == 100
assert recurrence.get_by_second(1) == 101
-assert recurrence.get_by_second(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_second(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_second_array()
assert array[0] == 100
assert array[1] == 101
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_minute(0, 2)
-recurrence.set_by_minute(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_minute(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_minute(0) == 2
-assert recurrence.get_by_minute(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_minute(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_minute_array()
assert array[0] == 2
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 200, 201 ]
assert len(array) == 2
recurrence.set_by_minute_array(array)
assert recurrence.get_by_minute(0) == 200
assert recurrence.get_by_minute(1) == 201
-assert recurrence.get_by_minute(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_minute(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_minute_array()
assert array[0] == 200
assert array[1] == 201
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_hour(0, 3)
-recurrence.set_by_hour(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_hour(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_hour(0) == 3
-assert recurrence.get_by_hour(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_hour(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_hour_array()
assert array[0] == 3
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 300, 301 ]
assert len(array) == 2
recurrence.set_by_hour_array(array)
assert recurrence.get_by_hour(0) == 300
assert recurrence.get_by_hour(1) == 301
-assert recurrence.get_by_hour(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_hour(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_hour_array()
assert array[0] == 300
assert array[1] == 301
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_day(0, 4)
-recurrence.set_by_day(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_day(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_day(0) == 4
-assert recurrence.get_by_day(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_day(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_day_array()
assert array[0] == 4
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 400, 401 ]
assert len(array) == 2
recurrence.set_by_day_array(array)
assert recurrence.get_by_day(0) == 400
assert recurrence.get_by_day(1) == 401
-assert recurrence.get_by_day(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_day(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_day_array()
assert array[0] == 400
assert array[1] == 401
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_month_day(0, 5)
-recurrence.set_by_month_day(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_month_day(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_month_day(0) == 5
-assert recurrence.get_by_month_day(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_month_day(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_month_day_array()
assert array[0] == 5
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 500, 501 ]
assert len(array) == 2
recurrence.set_by_month_day_array(array)
assert recurrence.get_by_month_day(0) == 500
assert recurrence.get_by_month_day(1) == 501
-assert recurrence.get_by_month_day(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_month_day(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_month_day_array()
assert array[0] == 500
assert array[1] == 501
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_year_day(0, 6)
-recurrence.set_by_year_day(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_year_day(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_year_day(0) == 6
-assert recurrence.get_by_year_day(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_year_day(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_year_day_array()
assert array[0] == 6
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 600, 601 ]
assert len(array) == 2
recurrence.set_by_year_day_array(array)
assert recurrence.get_by_year_day(0) == 600
assert recurrence.get_by_year_day(1) == 601
-assert recurrence.get_by_year_day(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_year_day(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_year_day_array()
assert array[0] == 600
assert array[1] == 601
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_week_no(0, 7)
-recurrence.set_by_week_no(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_week_no(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_week_no(0) == 7
-assert recurrence.get_by_week_no(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_week_no(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_week_no_array()
assert array[0] == 7
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 700, 701 ]
assert len(array) == 2
recurrence.set_by_week_no_array(array)
assert recurrence.get_by_week_no(0) == 700
assert recurrence.get_by_week_no(1) == 701
-assert recurrence.get_by_week_no(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_week_no(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_week_no_array()
assert array[0] == 700
assert array[1] == 701
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_month(0, 8)
-recurrence.set_by_month(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_month(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_month(0) == 8
-assert recurrence.get_by_month(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_month(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_month_array()
assert array[0] == 8
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 800, 801 ]
assert len(array) == 2
recurrence.set_by_month_array(array)
assert recurrence.get_by_month(0) == 800
assert recurrence.get_by_month(1) == 801
-assert recurrence.get_by_month(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_month(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_month_array()
assert array[0] == 800
assert array[1] == 801
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_set_pos(0, 9)
-recurrence.set_by_set_pos(1, ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX)
+recurrence.set_by_set_pos(1, ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX)
assert recurrence.get_by_set_pos(0) == 9
-assert recurrence.get_by_set_pos(1) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_set_pos(1) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_set_pos_array()
assert array[0] == 9
-assert array[1] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[1] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = [ 900, 901 ]
assert len(array) == 2
recurrence.set_by_set_pos_array(array)
assert recurrence.get_by_set_pos(0) == 900
assert recurrence.get_by_set_pos(1) == 901
-assert recurrence.get_by_set_pos(2) == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert recurrence.get_by_set_pos(2) == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
array = recurrence.get_by_set_pos_array()
assert array[0] == 900
assert array[1] == 901
-assert array[2] == ICalGLib.RecurrenceTypeArrayMaxValues.RECURRENCE_ARRAY_MAX
+assert array[2] == ICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
recurrence.set_by_second(0, 13)
by_second = recurrence.get_by_second_array()
assert by_second[0] == 13
-recurrence = ICalGLib.RecurrenceType.from_string(string)
+recurrence = ICalGLib.Recurrence.from_string(string)
-assert(ICalGLib.recur_string_to_weekday("MO") == ICalGLib.RecurrenceTypeWeekday.MONDAY_WEEKDAY)
+assert(ICalGLib.recur_string_to_weekday("MO") == ICalGLib.RecurrenceWeekday.MONDAY_WEEKDAY)
start = 100000
result = ICalGLib.recur_expand_recurrence(string, start, 10)
@@ -260,7 +260,7 @@ for i in range(0, 9):
string = "19970101T183248Z/19970102T071625Z"
-period = ICalGLib.PeriodType.from_string(string)
+period = ICalGLib.Period.from_string(string)
start = period.get_start()
iter = ICalGLib.RecurIterator.new(recurrence, start)
@@ -273,7 +273,7 @@ while day != 0:
timetype = iter.next()
day = timetype.get_day()
-recurrence = ICalGLib.RecurrenceType.from_string("FREQ=YEARLY;COUNT=10")
+recurrence = ICalGLib.Recurrence.from_string("FREQ=YEARLY;COUNT=10")
start = ICalGLib.Time.from_string("20161224T000000Z")
iter = ICalGLib.RecurIterator.new(recurrence, start)
@@ -282,7 +282,7 @@ start = ICalGLib.Time.from_string("20181224T000000Z")
assert ICalGLib.RecurIterator.set_start(iter, start) == 0
-recurrence = ICalGLib.RecurrenceType.from_string("FREQ=YEARLY")
+recurrence = ICalGLib.Recurrence.from_string("FREQ=YEARLY")
start = ICalGLib.Time.from_string("20161224T000000Z")
iter = ICalGLib.RecurIterator.new(recurrence, start)