summaryrefslogtreecommitdiff
path: root/apidocs/icalattach_8h.html
diff options
context:
space:
mode:
Diffstat (limited to 'apidocs/icalattach_8h.html')
-rw-r--r--apidocs/icalattach_8h.html82
1 files changed, 63 insertions, 19 deletions
diff --git a/apidocs/icalattach_8h.html b/apidocs/icalattach_8h.html
index 5ae6e329..20dd9a8c 100644
--- a/apidocs/icalattach_8h.html
+++ b/apidocs/icalattach_8h.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<meta name="generator" content="Doxygen 1.8.15"/>
+<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Libical API Documentation: icalattach.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -30,7 +30,7 @@
</table>
</div>
<!-- end header part -->
-<!-- Generated by Doxygen 1.8.15 -->
+<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -82,34 +82,34 @@ $(function() {
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a56d5623c8bd51231d464b50cc69a72c5"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structicalattach__impl.html">icalattach_impl</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a></td></tr>
-<tr class="memdesc:a56d5623c8bd51231d464b50cc69a72c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">An iCal attach object representing a link to a document object. <a href="#a56d5623c8bd51231d464b50cc69a72c5">More...</a><br /></td></tr>
+<tr class="memdesc:a56d5623c8bd51231d464b50cc69a72c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">An iCal attach object representing a link to a document object. <a href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">More...</a><br /></td></tr>
<tr class="separator:a56d5623c8bd51231d464b50cc69a72c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a331647f68081555d5dad37e6ebb96f41"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a331647f68081555d5dad37e6ebb96f41">icalattach_free_fn_t</a>) (char *data, void *user_data)</td></tr>
-<tr class="memdesc:a331647f68081555d5dad37e6ebb96f41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to be called to free the data of an <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="#a331647f68081555d5dad37e6ebb96f41">More...</a><br /></td></tr>
+<tr class="memdesc:a331647f68081555d5dad37e6ebb96f41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to be called to free the data of an <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="icalattach_8h.html#a331647f68081555d5dad37e6ebb96f41">More...</a><br /></td></tr>
<tr class="separator:a331647f68081555d5dad37e6ebb96f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a04b7e2f7106af21ca2cc03b9040f9487"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a04b7e2f7106af21ca2cc03b9040f9487">icalattach_get_data</a> (<a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *attach)</td></tr>
-<tr class="memdesc:a04b7e2f7106af21ca2cc03b9040f9487"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the data of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="#a04b7e2f7106af21ca2cc03b9040f9487">More...</a><br /></td></tr>
+<tr class="memdesc:a04b7e2f7106af21ca2cc03b9040f9487"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the data of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="icalattach_8h.html#a04b7e2f7106af21ca2cc03b9040f9487">More...</a><br /></td></tr>
<tr class="separator:a04b7e2f7106af21ca2cc03b9040f9487"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87aa30954aa1f901d90ab816abdfebd1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a> (<a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *attach)</td></tr>
-<tr class="memdesc:a87aa30954aa1f901d90ab816abdfebd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if <em>attach</em> is an URL. <a href="#a87aa30954aa1f901d90ab816abdfebd1">More...</a><br /></td></tr>
+<tr class="memdesc:a87aa30954aa1f901d90ab816abdfebd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if <em>attach</em> is an URL. <a href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">More...</a><br /></td></tr>
<tr class="separator:a87aa30954aa1f901d90ab816abdfebd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace086024b7d9e24e0052ccd7a6fc1d60"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a> (<a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *attach)</td></tr>
-<tr class="memdesc:ace086024b7d9e24e0052ccd7a6fc1d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the URL of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="#ace086024b7d9e24e0052ccd7a6fc1d60">More...</a><br /></td></tr>
+<tr class="memdesc:ace086024b7d9e24e0052ccd7a6fc1d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the URL of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. <a href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">More...</a><br /></td></tr>
<tr class="separator:ace086024b7d9e24e0052ccd7a6fc1d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6274ba5df22dde512aaa5bb07f08464"><td class="memItemLeft" align="right" valign="top"><a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#ab6274ba5df22dde512aaa5bb07f08464">icalattach_new_from_data</a> (const char *data, <a class="el" href="icalattach_8h.html#a331647f68081555d5dad37e6ebb96f41">icalattach_free_fn_t</a> free_fn, void *free_fn_data)</td></tr>
-<tr class="memdesc:ab6274ba5df22dde512aaa5bb07f08464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from data. <a href="#ab6274ba5df22dde512aaa5bb07f08464">More...</a><br /></td></tr>
+<tr class="memdesc:ab6274ba5df22dde512aaa5bb07f08464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from data. <a href="icalattach_8h.html#ab6274ba5df22dde512aaa5bb07f08464">More...</a><br /></td></tr>
<tr class="separator:ab6274ba5df22dde512aaa5bb07f08464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd3cb99bf67d17f3f11cc7b5f78f13b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a> (const char *url)</td></tr>
-<tr class="memdesc:a8fd3cb99bf67d17f3f11cc7b5f78f13b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from a URL. <a href="#a8fd3cb99bf67d17f3f11cc7b5f78f13b">More...</a><br /></td></tr>
+<tr class="memdesc:a8fd3cb99bf67d17f3f11cc7b5f78f13b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from a URL. <a href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">More...</a><br /></td></tr>
<tr class="separator:a8fd3cb99bf67d17f3f11cc7b5f78f13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa442cd17e95dd605f5df40194d910002"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#aa442cd17e95dd605f5df40194d910002">icalattach_ref</a> (<a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *attach)</td></tr>
-<tr class="memdesc:aa442cd17e95dd605f5df40194d910002"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increments reference count of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a>. <a href="#aa442cd17e95dd605f5df40194d910002">More...</a><br /></td></tr>
+<tr class="memdesc:aa442cd17e95dd605f5df40194d910002"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increments reference count of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a>. <a href="icalattach_8h.html#aa442cd17e95dd605f5df40194d910002">More...</a><br /></td></tr>
<tr class="separator:aa442cd17e95dd605f5df40194d910002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9e8fe048e58d1035f82ca47e51024f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a> (<a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5">icalattach</a> *attach)</td></tr>
-<tr class="memdesc:a4f9e8fe048e58d1035f82ca47e51024f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference count of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a>. <a href="#a4f9e8fe048e58d1035f82ca47e51024f">More...</a><br /></td></tr>
+<tr class="memdesc:a4f9e8fe048e58d1035f82ca47e51024f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference count of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a>. <a href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">More...</a><br /></td></tr>
<tr class="separator:a4f9e8fe048e58d1035f82ca47e51024f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
@@ -148,7 +148,7 @@ Functions</h2></td></tr>
<p>Function to be called to free the data of an <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object. </p>
<dl class="section warning"><dt>Warning</dt><dd>Currently not used</dd></dl>
-<p>This function type is used to free the data from an <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object created with <a class="el" href="icalattach_8h.html#ab6274ba5df22dde512aaa5bb07f08464" title="Create new icalattach object from data.">icalattach_new_from_data()</a>. It is currently not used </p>
+<p>This function type is used to free the data from an <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object created with <a class="el" href="icalattach_8h.html#ab6274ba5df22dde512aaa5bb07f08464" title="Creates new icalattach object from data.">icalattach_new_from_data()</a>. It is currently not used </p>
</div>
</div>
@@ -210,7 +210,17 @@ Functions</h2></td></tr>
<dl class="section return"><dt>Returns</dt><dd>1 if it is a URL, otherwise 0. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60" title="Returns the URL of the icalattach object.">icalattach_get_url()</a></dd></dl>
<dl class="section user"><dt>Error handling</dt><dd>Returns <code>NULL</code> and sets <a class="el" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37" title="Access the current icalerrno value.">icalerrno</a> to <a class="el" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a> if <em>attach</em> is <code>NULL</code>.</dd></dl>
-<p>### Usage </p><div class="fragment"><div class="line"><span class="comment">// creates new</span></div><div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div><div class="line"></div><div class="line"><span class="comment">// checks if it is a URL</span></div><div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div><div class="line"></div><div class="line"><span class="comment">// release it</span></div><div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div></div><!-- fragment -->
+<h3><a class="anchor" id="autotoc_md9"></a>
+Usage</h3>
+<div class="fragment"><div class="line"><span class="comment">// creates new</span></div>
+<div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// checks if it is a URL</span></div>
+<div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// release it</span></div>
+<div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div>
+</div><!-- fragment -->
</div>
</div>
<a id="ace086024b7d9e24e0052ccd7a6fc1d60"></a>
@@ -241,7 +251,18 @@ Functions</h2></td></tr>
<p>Returns the URL of the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object.</p>
<dl class="section user"><dt>Error handling</dt><dd>Returns <code>NULL</code> and set <a class="el" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37" title="Access the current icalerrno value.">icalerrno</a> to <a class="el" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a> if <em>attach</em> is <code>NULL</code>. Undefined behaviour if the object is not a URL (check with <a class="el" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1" title="Determines if attach is an URL.">icalattach_get_is_url()</a>).</dd></dl>
<dl class="section user"><dt>Ownership</dt><dd>The string returned is owned by libical and must not be freed by the caller.</dd></dl>
-<p># Usage </p><div class="fragment"><div class="line"><span class="comment">// creates new</span></div><div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div><div class="line"></div><div class="line"><span class="comment">// checks it</span></div><div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div><div class="line">assert(0 == strcmp(<a class="code" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a>(attach), <span class="stringliteral">&quot;http://example.com&quot;</span>));</div><div class="line"></div><div class="line"><span class="comment">// release it</span></div><div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div></div><!-- fragment -->
+<h1><a class="anchor" id="autotoc_md10"></a>
+Usage</h1>
+<div class="fragment"><div class="line"><span class="comment">// creates new</span></div>
+<div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// checks it</span></div>
+<div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div>
+<div class="line">assert(0 == strcmp(<a class="code" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a>(attach), <span class="stringliteral">&quot;http://example.com&quot;</span>));</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// release it</span></div>
+<div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div>
+</div><!-- fragment -->
</div>
</div>
<a id="ab6274ba5df22dde512aaa5bb07f08464"></a>
@@ -276,7 +297,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
-<p>Create new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from data. </p>
+<p>Creates new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from data. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>The data to create the <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> from </td></tr>
@@ -308,7 +329,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
-<p>Create new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from a URL. </p>
+<p>Creates new <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object from a URL. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">url</td><td>The URL to create the object from </td></tr>
@@ -319,7 +340,18 @@ Functions</h2></td></tr>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f" title="Decrements reference count of the icalattach.">icalattach_unref()</a></dd></dl>
<dl class="section user"><dt>Error handling</dt><dd>If <em>url</em> is <code>NULL</code>, it returns <code>NULL</code> and sets <a class="el" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37" title="Access the current icalerrno value.">icalerrno</a> to <a class="el" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a>. If there was an error allocating memory, it returns <code>NULL</code> and sets <code>errno</code> to <code>ENOMEM</code>.</dd></dl>
<dl class="section user"><dt>Ownership</dt><dd>The returned <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> object is owned by the caller of the function. <a class="el" href="icalattach_8h.html#a56d5623c8bd51231d464b50cc69a72c5" title="An iCal attach object representing a link to a document object.">icalattach</a> objects are reference counted, which means that after use, <a class="el" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f" title="Decrements reference count of the icalattach.">icalattach_unref()</a> needs to be called to signal that they are not used anymore.</dd></dl>
-<p>### Usage </p><div class="fragment"><div class="line"><span class="comment">// creates new</span></div><div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div><div class="line"></div><div class="line"><span class="comment">// checks it</span></div><div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div><div class="line">assert(0 == strcmp(<a class="code" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a>(attach), <span class="stringliteral">&quot;http://example.com&quot;</span>));</div><div class="line"></div><div class="line"><span class="comment">// release it</span></div><div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div></div><!-- fragment -->
+<h3><a class="anchor" id="autotoc_md7"></a>
+Usage</h3>
+<div class="fragment"><div class="line"><span class="comment">// creates new</span></div>
+<div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// checks it</span></div>
+<div class="line">assert(<a class="code" href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a>(attach));</div>
+<div class="line">assert(0 == strcmp(<a class="code" href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a>(attach), <span class="stringliteral">&quot;http://example.com&quot;</span>));</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// release it</span></div>
+<div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div>
+</div><!-- fragment -->
</div>
</div>
<a id="aa442cd17e95dd605f5df40194d910002"></a>
@@ -378,15 +410,27 @@ Functions</h2></td></tr>
<p>Decreases the reference count of <em>attach</em>. If this was the last user of the object, it is freed.</p>
<dl class="section user"><dt>Error handling</dt><dd>If <em>attach</em> is <code>NULL</code>, or the reference count is smaller than 0, it sets <a class="el" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37" title="Access the current icalerrno value.">icalerrno</a> to <a class="el" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a>.</dd></dl>
<dl class="section user"><dt>Ownership</dt><dd>Calling this function releases the icalattach back to the library, and it must not be used afterwards.</dd></dl>
-<p>### Usage </p><div class="fragment"><div class="line"><span class="comment">// creates new</span></div><div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div><div class="line"></div><div class="line"><span class="comment">// release it</span></div><div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div></div><!-- fragment -->
+<h3><a class="anchor" id="autotoc_md8"></a>
+Usage</h3>
+<div class="fragment"><div class="line"><span class="comment">// creates new</span></div>
+<div class="line"><a class="code" href="structicalattach__impl.html">icalattach</a> *attach = <a class="code" href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a>(<span class="stringliteral">&quot;http://example.com&quot;</span>);</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// release it</span></div>
+<div class="line"><a class="code" href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a>(attach);</div>
+</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
+<div class="ttc" id="aicalattach_8h_html_a8fd3cb99bf67d17f3f11cc7b5f78f13b"><div class="ttname"><a href="icalattach_8h.html#a8fd3cb99bf67d17f3f11cc7b5f78f13b">icalattach_new_from_url</a></div><div class="ttdeci">icalattach * icalattach_new_from_url(const char *url)</div><div class="ttdoc">Creates new icalattach object from a URL.</div><div class="ttdef"><b>Definition:</b> icalattach.c:29</div></div>
+<div class="ttc" id="astructicalattach__impl_html"><div class="ttname"><a href="structicalattach__impl.html">icalattach_impl</a></div><div class="ttdef"><b>Definition:</b> icalattachimpl.h:26</div></div>
+<div class="ttc" id="aicalattach_8h_html_a87aa30954aa1f901d90ab816abdfebd1"><div class="ttname"><a href="icalattach_8h.html#a87aa30954aa1f901d90ab816abdfebd1">icalattach_get_is_url</a></div><div class="ttdeci">int icalattach_get_is_url(icalattach *attach)</div><div class="ttdoc">Determines if attach is an URL.</div><div class="ttdef"><b>Definition:</b> icalattach.c:118</div></div>
+<div class="ttc" id="aicalattach_8h_html_a4f9e8fe048e58d1035f82ca47e51024f"><div class="ttname"><a href="icalattach_8h.html#a4f9e8fe048e58d1035f82ca47e51024f">icalattach_unref</a></div><div class="ttdeci">void icalattach_unref(icalattach *attach)</div><div class="ttdoc">Decrements reference count of the icalattach.</div><div class="ttdef"><b>Definition:</b> icalattach.c:99</div></div>
+<div class="ttc" id="aicalattach_8h_html_ace086024b7d9e24e0052ccd7a6fc1d60"><div class="ttname"><a href="icalattach_8h.html#ace086024b7d9e24e0052ccd7a6fc1d60">icalattach_get_url</a></div><div class="ttdeci">const char * icalattach_get_url(icalattach *attach)</div><div class="ttdoc">Returns the URL of the icalattach object.</div><div class="ttdef"><b>Definition:</b> icalattach.c:125</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.15
+</a> 1.8.18
</small></address>
</body>
</html>