summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-01-31 11:40:23 +0100
committerMilan Crha <mcrha@redhat.com>2019-01-31 11:40:23 +0100
commit153f3070a84c98ec6f2192a7ec06f6be21d1b497 (patch)
treed7d673907bf11dfcc9908330d09690a8945b4d56 /src
parentdf2f3dd1bb2b1dc4947fd24dd21a1fe28fe1ab20 (diff)
downloadlibical-git-153f3070a84c98ec6f2192a7ec06f6be21d1b497.tar.gz
[libical-glib] Change return type of i_cal_attach_get_data()
To correspond to the type used in i_cal_attach_new_from_data(). Also make it 'const', to indicate that the return data is owned by the object.
Diffstat (limited to 'src')
-rw-r--r--src/libical-glib/api/i-cal-attach.xml13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/libical-glib/api/i-cal-attach.xml b/src/libical-glib/api/i-cal-attach.xml
index 5ec06389..29bd1e19 100644
--- a/src/libical-glib/api/i-cal-attach.xml
+++ b/src/libical-glib/api/i-cal-attach.xml
@@ -41,12 +41,15 @@
</method>
<method name="i_cal_attach_get_url" corresponds="icalattach_get_url" kind="others" since="1.0">
<parameter type="ICalAttach *" name="attach" comment="The #ICalAttach to be queried"/>
- <returns type="const gchar *" annotation="allow-none, transfer none" comment="The url component of the @attach. NULL if it is built from data or there is an error." />
- <comment xml:space="preserve">Get the url if the #ICalAttach is built from the url. NULL if else.</comment>
+ <returns type="const gchar *" annotation="allow-none, transfer none" comment="The url component of the @attach. %NULL if it is built from data or there is an error." />
+ <comment xml:space="preserve">Get the url, if the #ICalAttach is built from the url.</comment>
</method>
- <method name="i_cal_attach_get_data" corresponds="icalattach_get_data" kind="others" since="1.0">
+ <method name="i_cal_attach_get_data" corresponds="CUSTOM" kind="others" since="1.0">
<parameter type="ICalAttach *" name="attach" comment="The #ICalAttach to be queried"/>
- <returns type="guchar *" annotation="type utf8, allow-none, transfer none" comment="The data component of the @attach. NULL if it is built from url or there is an error." />
- <comment xml:space="preserve">Get the data if the #ICalAttach is built from the data. NULL if else.</comment>
+ <returns type="const gchar *" annotation="nullable, transfer none" comment="The data component of the @attach. %NULL if it is built from url or there is an error." />
+ <comment xml:space="preserve">Get the data, if the #ICalAttach is built from the data.</comment>
+ <custom> g_return_val_if_fail (I_CAL_IS_ATTACH (attach), NULL);
+
+ return (const gchar *) (icalattach_get_data ((icalattach *)i_cal_object_get_native (I_CAL_OBJECT (attach))));</custom>
</method>
</structure>