/usr/share/doc/libsratom-dev/index.html is in libsratom-doc 0.4.6~dfsg0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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.8"/>
<title>Sratom: Sratom</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Sratom
<span id="projectnumber">0.4.6</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Sratom</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>An LV2 Atom RDF serialisation library. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaff6a49d547dbfe9f8d910f9b1ae98494"><td class="memItemLeft" align="right" valign="top">typedef struct SratomImpl</td><td class="memItemRight" valign="bottom"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a></td></tr>
<tr class="separator:gaff6a49d547dbfe9f8d910f9b1ae98494"><td class="memSeparator" colspan="2"></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaf476c91b166a55d78e4aa7fc2213182f"><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf476c91b166a55d78e4aa7fc2213182f">SratomObjectMode</a> { <a class="el" href="#ggaf476c91b166a55d78e4aa7fc2213182fa7f47b603d2cd7da31469a0dce3828739">SRATOM_OBJECT_MODE_BLANK</a>,
<a class="el" href="#ggaf476c91b166a55d78e4aa7fc2213182fa50e9f133f13abf4063480d1f546b854c">SRATOM_OBJECT_MODE_BLANK_SUBJECT</a>
}</td></tr>
<tr class="separator:gaf476c91b166a55d78e4aa7fc2213182f"><td class="memSeparator" colspan="2"></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:ga6ca41eacfb303961a39e4b8c18f728df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6ca41eacfb303961a39e4b8c18f728df">sratom_new</a> (LV2_URID_Map *map)</td></tr>
<tr class="separator:ga6ca41eacfb303961a39e4b8c18f728df"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga4d805918e1d89ce8cc30005c3d6a08e5"><td class="memItemLeft" align="right" valign="top">void</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga4d805918e1d89ce8cc30005c3d6a08e5">sratom_free</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom)</td></tr>
<tr class="separator:ga4d805918e1d89ce8cc30005c3d6a08e5"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga657cee72c5d1916da976c108bef687c7"><td class="memItemLeft" align="right" valign="top">void</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga657cee72c5d1916da976c108bef687c7">sratom_set_sink</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, const char *base_uri, SerdStatementSink sink, SerdEndSink end_sink, void *handle)</td></tr>
<tr class="separator:ga657cee72c5d1916da976c108bef687c7"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga0d93ebb102d9d1e033ed826c5119d2ca"><td class="memItemLeft" align="right" valign="top">void</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0d93ebb102d9d1e033ed826c5119d2ca">sratom_set_pretty_numbers</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, bool pretty_numbers)</td></tr>
<tr class="separator:ga0d93ebb102d9d1e033ed826c5119d2ca"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:gad4f459e8c541f9bf303e105aea323198"><td class="memItemLeft" align="right" valign="top">void</td><td class="memItemRight" valign="bottom"><a class="el" href="#gad4f459e8c541f9bf303e105aea323198">sratom_set_object_mode</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, <a class="el" href="#gaf476c91b166a55d78e4aa7fc2213182f">SratomObjectMode</a> object_mode)</td></tr>
<tr class="separator:gad4f459e8c541f9bf303e105aea323198"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga2c8efd0cc16686de0cabc19ca3f0effc"><td class="memItemLeft" align="right" valign="top">int</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2c8efd0cc16686de0cabc19ca3f0effc">sratom_write</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, LV2_URID_Unmap *unmap, uint32_t flags, const SerdNode *subject, const SerdNode *predicate, uint32_t type, uint32_t size, const void *body)</td></tr>
<tr class="separator:ga2c8efd0cc16686de0cabc19ca3f0effc"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:gafe78e0e2f6ce3c69b90ae4af7d153f68"><td class="memItemLeft" align="right" valign="top">void</td><td class="memItemRight" valign="bottom"><a class="el" href="#gafe78e0e2f6ce3c69b90ae4af7d153f68">sratom_read</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, LV2_Atom_Forge *forge, SordWorld *world, SordModel *model, const SordNode *subject)</td></tr>
<tr class="separator:gafe78e0e2f6ce3c69b90ae4af7d153f68"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga65fa0a468f17b55de2169012fef8d7f2"><td class="memItemLeft" align="right" valign="top">char *</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga65fa0a468f17b55de2169012fef8d7f2">sratom_to_turtle</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, LV2_URID_Unmap *unmap, const char *base_uri, const SerdNode *subject, const SerdNode *predicate, uint32_t type, uint32_t size, const void *body)</td></tr>
<tr class="separator:ga65fa0a468f17b55de2169012fef8d7f2"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:gabb8be4254715e569531159e21cf27c17"><td class="memItemLeft" align="right" valign="top">LV2_Atom *</td><td class="memItemRight" valign="bottom"><a class="el" href="#gabb8be4254715e569531159e21cf27c17">sratom_from_turtle</a> (<a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *sratom, const char *base_uri, const SerdNode *subject, const SerdNode *predicate, const char *str)</td></tr>
<tr class="separator:gabb8be4254715e569531159e21cf27c17"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:ga81b7aa6812793fd2f905432ac90eb27b"><td class="memItemLeft" align="right" valign="top">LV2_Atom_Forge_Ref</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga81b7aa6812793fd2f905432ac90eb27b">sratom_forge_sink</a> (LV2_Atom_Forge_Sink_Handle handle, const void *buf, uint32_t size)</td></tr>
<tr class="separator:ga81b7aa6812793fd2f905432ac90eb27b"><td class="memSeparator" colspan="2"></td></tr>
<tr class="memitem:gaf2e397c53d1ca4eed848986d733d300b"><td class="memItemLeft" align="right" valign="top">LV2_Atom *</td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf2e397c53d1ca4eed848986d733d300b">sratom_forge_deref</a> (LV2_Atom_Forge_Sink_Handle handle, LV2_Atom_Forge_Ref ref)</td></tr>
<tr class="separator:gaf2e397c53d1ca4eed848986d733d300b"><td class="memSeparator" colspan="2"></td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gaff6a49d547dbfe9f8d910f9b1ae98494"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct SratomImpl <a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Atom serialiser. </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gaf476c91b166a55d78e4aa7fc2213182f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="#gaf476c91b166a55d78e4aa7fc2213182f">SratomObjectMode</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Mode for reading resources to LV2 Objects. </p>
<p>This affects how resources (which are either blank nodes or have URIs) are read by <a class="el" href="#gafe78e0e2f6ce3c69b90ae4af7d153f68" title="Read an Atom from RDF. ">sratom_read()</a>, since they may be read as simple references (a URI or blank node ID) or a complete description (an atom "Object").</p>
<p>Currently, blank nodes are always read as Objects, but support for reading blank node IDs may be added in the future. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggaf476c91b166a55d78e4aa7fc2213182fa7f47b603d2cd7da31469a0dce3828739"></a>SRATOM_OBJECT_MODE_BLANK</td><td class="fielddoc">
<p>Read blank nodes as Objects, and named resources as URIs. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaf476c91b166a55d78e4aa7fc2213182fa50e9f133f13abf4063480d1f546b854c"></a>SRATOM_OBJECT_MODE_BLANK_SUBJECT</td><td class="fielddoc">
<p>Read blank nodes and the main subject as Objects, and any other named resources as URIs. </p>
<p>The "main subject" is the subject parameter passed to <a class="el" href="#gafe78e0e2f6ce3c69b90ae4af7d153f68" title="Read an Atom from RDF. ">sratom_read()</a>; if this is a resource it will be read as an Object, but all other named resources encountered will be read as URIs. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga6ca41eacfb303961a39e4b8c18f728df"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a>* sratom_new </td>
<td>(</td>
<td class="paramtype">LV2_URID_Map *</td>
<td class="paramname"><em>map</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new Atom serialiser. </p>
</div>
</div>
<a class="anchor" id="ga4d805918e1d89ce8cc30005c3d6a08e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void sratom_free </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free an Atom serialisation. </p>
</div>
</div>
<a class="anchor" id="ga657cee72c5d1916da976c108bef687c7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void sratom_set_sink </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *</td>
<td class="paramname"><em>base_uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">SerdStatementSink</td>
<td class="paramname"><em>sink</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">SerdEndSink</td>
<td class="paramname"><em>end_sink</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *</td>
<td class="paramname"><em>handle</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the sink(s) where sratom will write its output. </p>
<p>This must be called before calling <a class="el" href="#ga2c8efd0cc16686de0cabc19ca3f0effc" title="Write an Atom to RDF. ">sratom_write()</a>. </p>
</div>
</div>
<a class="anchor" id="ga0d93ebb102d9d1e033ed826c5119d2ca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void sratom_set_pretty_numbers </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool</td>
<td class="paramname"><em>pretty_numbers</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write pretty numeric literals. </p>
<p>If <code>pretty_numbers</code> is true, numbers will be written as pretty Turtle literals, rather than string literals with precise types. The cost of this is that the types might get fudged on a round-trip to RDF and back. </p>
</div>
</div>
<a class="anchor" id="gad4f459e8c541f9bf303e105aea323198"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void sratom_set_object_mode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="#gaf476c91b166a55d78e4aa7fc2213182f">SratomObjectMode</a></td>
<td class="paramname"><em>object_mode</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Configure how resources will be read to form LV2 Objects. </p>
</div>
</div>
<a class="anchor" id="ga2c8efd0cc16686de0cabc19ca3f0effc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int sratom_write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">LV2_URID_Unmap *</td>
<td class="paramname"><em>unmap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>subject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>predicate</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const void *</td>
<td class="paramname"><em>body</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write an Atom to RDF. </p>
<p>The serialised atom is written to the sink set by <a class="el" href="#ga657cee72c5d1916da976c108bef687c7" title="Set the sink(s) where sratom will write its output. ">sratom_set_sink()</a>. </p><dl class="section return"><dt>Returns</dt><dd>0 on success, or a non-zero error code otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="gafe78e0e2f6ce3c69b90ae4af7d153f68"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void sratom_read </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">LV2_Atom_Forge *</td>
<td class="paramname"><em>forge</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">SordWorld *</td>
<td class="paramname"><em>world</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">SordModel *</td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SordNode *</td>
<td class="paramname"><em>subject</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read an Atom from RDF. </p>
<p>The resulting atom will be written to <code>forge</code>. </p>
</div>
</div>
<a class="anchor" id="ga65fa0a468f17b55de2169012fef8d7f2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* sratom_to_turtle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">LV2_URID_Unmap *</td>
<td class="paramname"><em>unmap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *</td>
<td class="paramname"><em>base_uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>subject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>predicate</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const void *</td>
<td class="paramname"><em>body</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialise an Atom to a Turtle string. </p>
<p>The returned string must be free()'d by the caller. </p>
</div>
</div>
<a class="anchor" id="gabb8be4254715e569531159e21cf27c17"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">LV2_Atom* sratom_from_turtle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="#gaff6a49d547dbfe9f8d910f9b1ae98494">Sratom</a> *</td>
<td class="paramname"><em>sratom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *</td>
<td class="paramname"><em>base_uri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>subject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const SerdNode *</td>
<td class="paramname"><em>predicate</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *</td>
<td class="paramname"><em>str</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read an Atom from a Turtle string. </p>
<p>The returned atom must be free()'d by the caller. </p>
</div>
</div>
<a class="anchor" id="ga81b7aa6812793fd2f905432ac90eb27b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">LV2_Atom_Forge_Ref sratom_forge_sink </td>
<td>(</td>
<td class="paramtype">LV2_Atom_Forge_Sink_Handle</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const void *</td>
<td class="paramname"><em>buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t</td>
<td class="paramname"><em>size</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A convenient resizing sink for LV2_Atom_Forge. </p>
<p>The handle must point to an initialized SerdChunk. </p>
</div>
</div>
<a class="anchor" id="gaf2e397c53d1ca4eed848986d733d300b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">LV2_Atom* sratom_forge_deref </td>
<td>(</td>
<td class="paramtype">LV2_Atom_Forge_Sink_Handle</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">LV2_Atom_Forge_Ref</td>
<td class="paramname"><em>ref</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The corresponding deref function for sratom_forge_sink. </p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="http://www.doxygen.org/index.html">
Doxygen
</a> 1.8.8
</small></address>
</body>
</html>
|