summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-03-27 19:08:49 +0100
committerMilan Crha <mcrha@redhat.com>2019-03-27 19:08:49 +0100
commitb896e806af02df99b283447a87897e2601e0a667 (patch)
treef7c1973c1964aafd96024c45f38efd08a68dd9ca
parentbfba6de2c48625d36eab2238a24171ad06939ee1 (diff)
downloadlibical-git-b896e806af02df99b283447a87897e2601e0a667.tar.gz
[libical-glib] Minor cleanup in parameter naming in i-cal-duration.xml
-rw-r--r--src/libical-glib/api/i-cal-duration.xml72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/libical-glib/api/i-cal-duration.xml b/src/libical-glib/api/i-cal-duration.xml
index 9042a895..eb47806c 100644
--- a/src/libical-glib/api/i-cal-duration.xml
+++ b/src/libical-glib/api/i-cal-duration.xml
@@ -15,88 +15,88 @@
-->
<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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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."/>
+ <parameter type="ICalDuration *" name="duration" 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>
+ <custom> g_return_val_if_fail (duration != NULL, 0);
+ return ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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="ICalDuration *" name="duration" 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>
+ <custom> g_return_if_fail (duration != NULL &amp;&amp; I_CAL_IS_DURATION (duration));
+ ((struct icaldurationtype *)i_cal_object_get_native ((ICalObject *)duration))->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"/>