blob: f2b1ff3ce2cf95b7bf20336979ac4c1820d3141e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!--
SPDX-FileCopyrightText: 2015 William Yu <williamyu@gnome.org>
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
-->
<structure namespace="ICal" name="Mime">
<declaration position="header">/**
* ICalMimeParseFunc:
* @bytes: (array length=size) (element-type gchar): the bytes to process
* @size: the length of the bytes array
* @user_data: the user data
*
* Returns: A #ICalComponent as a string
*/
typedef gchar *(*ICalMimeParseFunc)(gchar *bytes, size_t size, gpointer user_data);</declaration>
<method name="i_cal_mime_parse" corresponds="CUSTOM" since="1.0">
<parameter type="ICalMimeParseFunc" name="func" annotation="scope call" comment="The parsing function"/>
<parameter type="gpointer" name="user_data" annotation="closure" comment="The date given to @func"/>
<returns type="ICalComponent *" annotation="transfer full" comment="The parsed #ICalComponent"/>
<comment xml:space="preserve">Parses data to #ICalComponent using the given function.</comment>
<custom> g_return_val_if_fail (func != NULL, NULL);
g_return_val_if_fail (user_data != NULL, NULL);
return i_cal_component_new_full (icalmime_parse(func, user_data), NULL);</custom>
</method>
</structure>
|