This file is indexed.

/usr/share/doc/libserd-dev/serd_8h_source.html is in libserd-doc 0.5.0+dfsg0-2.

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
<!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"/>
<title>Serd: serd.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="/build/buildd/serd-0.5.0+dfsg0/doc/style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Serd
   &#160;<span id="projectnumber">0.5.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">serd.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">  Copyright 2011 David Robillard &lt;http://drobilla.net&gt;</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">  Permission to use, copy, modify, and/or distribute this software for any</span>
<a name="l00005"></a>00005 <span class="comment">  purpose with or without fee is hereby granted, provided that the above</span>
<a name="l00006"></a>00006 <span class="comment">  copyright notice and this permission notice appear in all copies.</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">  THIS SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span>
<a name="l00009"></a>00009 <span class="comment">  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span>
<a name="l00010"></a>00010 <span class="comment">  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span>
<a name="l00011"></a>00011 <span class="comment">  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span>
<a name="l00012"></a>00012 <span class="comment">  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span>
<a name="l00013"></a>00013 <span class="comment">  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span>
<a name="l00014"></a>00014 <span class="comment">  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span>
<a name="l00015"></a>00015 <span class="comment">*/</span>
<a name="l00016"></a>00016 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef SERD_SERD_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define SERD_SERD_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;stddef.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#ifdef SERD_SHARED</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#    ifdef __WIN32__</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_LIB_IMPORT __declspec(dllimport)</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_LIB_EXPORT __declspec(dllexport)</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#    else</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_LIB_IMPORT __attribute__((visibility(&quot;default&quot;)))</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_LIB_EXPORT __attribute__((visibility(&quot;default&quot;)))</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#    ifdef SERD_INTERNAL</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_API SERD_LIB_EXPORT</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#    else</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#        define SERD_API SERD_LIB_IMPORT</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#    define SERD_API</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755">00062</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>SerdEnvImpl <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>;
<a name="l00063"></a>00063 
<a name="l00070"></a><a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796">00070</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>SerdReaderImpl <a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>;
<a name="l00071"></a>00071 
<a name="l00080"></a><a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0">00080</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>SerdWriterImpl <a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>;
<a name="l00081"></a>00081 
<a name="l00085"></a><a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d">00085</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00086"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330dafd38f5db6ffd5b5c8646c8023c95dd49">00086</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330dafd38f5db6ffd5b5c8646c8023c95dd49" title="No error.">SERD_SUCCESS</a>,         
<a name="l00087"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da826a381ebe3341da46e3557924de0340">00087</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da826a381ebe3341da46e3557924de0340" title="Non-fatal failure.">SERD_FAILURE</a>,         
<a name="l00088"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330dada1292115013f04e99b2ecfe32acd9a5">00088</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330dada1292115013f04e99b2ecfe32acd9a5" title="Unknown error.">SERD_ERR_UNKNOWN</a>,     
<a name="l00089"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da3f4b92675b7fb3fa8ee46611a0963a46">00089</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da3f4b92675b7fb3fa8ee46611a0963a46" title="Invalid syntax.">SERD_ERR_BAD_SYNTAX</a>,  
<a name="l00090"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da138e7b6b98684e9f408bb91e49bbb315">00090</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330da138e7b6b98684e9f408bb91e49bbb315" title="Invalid argument.">SERD_ERR_BAD_ARG</a>,     
<a name="l00091"></a><a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330daa92193f18699e3e21cce770c95eae842">00091</a>     <a class="code" href="group__serd.html#gga104d544e48b6282ef2447bb3ac7c330daa92193f18699e3e21cce770c95eae842" title="Not found.">SERD_ERR_NOT_FOUND</a>    
<a name="l00092"></a>00092 } <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>;
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 SERD_API
<a name="l00095"></a>00095 <span class="keyword">const</span> uint8_t*
<a name="l00096"></a>00096 <a class="code" href="group__serd.html#gac0743f37f7890c255a2960dbe30ff25d">serd_strerror</a>(<a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a> status);
<a name="l00097"></a>00097 
<a name="l00101"></a><a class="code" href="group__serd.html#ga42683406fcfa9046b28dd951cefd3391">00101</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00106"></a><a class="code" href="group__serd.html#gga42683406fcfa9046b28dd951cefd3391a4acfee57d17213dcb55e94c55a4fd78e">00106</a>     <a class="code" href="group__serd.html#gga42683406fcfa9046b28dd951cefd3391a4acfee57d17213dcb55e94c55a4fd78e" title="Turtle - Terse RDF Triple Language (UTF-8).">SERD_TURTLE</a> = 1,
<a name="l00107"></a>00107 
<a name="l00112"></a><a class="code" href="group__serd.html#gga42683406fcfa9046b28dd951cefd3391a3debf79a887908f0502c20029cd050a0">00112</a>     <a class="code" href="group__serd.html#gga42683406fcfa9046b28dd951cefd3391a3debf79a887908f0502c20029cd050a0" title="NTriples - Line-based RDF triples (ASCII).">SERD_NTRIPLES</a> = 2
<a name="l00113"></a>00113 } <a class="code" href="group__serd.html#ga42683406fcfa9046b28dd951cefd3391" title="RDF syntax type.">SerdSyntax</a>;
<a name="l00114"></a>00114 
<a name="l00118"></a><a class="code" href="group__serd.html#ga9f7ab02c389af900f04d29be09c57647">00118</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00119"></a><a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a09c7af768d2df031e453af6cd4b5c443">00119</a>     <a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a09c7af768d2df031e453af6cd4b5c443" title="Empty blank node subject.">SERD_EMPTY_S</a>      = 1 &lt;&lt; 1,  
<a name="l00120"></a><a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a392894ad449f66514ac9395708bf7a2e">00120</a>     <a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a392894ad449f66514ac9395708bf7a2e" title="Empty blank node object.">SERD_EMPTY_O</a>      = 1 &lt;&lt; 2,  
<a name="l00121"></a><a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a4884dff61b0d7db44be17bb950158f8e">00121</a>     <a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647a4884dff61b0d7db44be17bb950158f8e" title="Start of anonymous subject.">SERD_ANON_S_BEGIN</a> = 1 &lt;&lt; 3,  
<a name="l00122"></a><a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647aae52aa2d821bdd02e828cfcf07692978">00122</a>     <a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647aae52aa2d821bdd02e828cfcf07692978" title="Start of anonymous object.">SERD_ANON_O_BEGIN</a> = 1 &lt;&lt; 4,  
<a name="l00123"></a><a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647ac4825dca7b59b50762a87174fc4148b2">00123</a>     <a class="code" href="group__serd.html#gga9f7ab02c389af900f04d29be09c57647ac4825dca7b59b50762a87174fc4148b2" title="Continuation of anonymous node.">SERD_ANON_CONT</a>    = 1 &lt;&lt; 5   
<a name="l00124"></a>00124 } <a class="code" href="group__serd.html#ga9f7ab02c389af900f04d29be09c57647" title="Flags indication inline abbreviation information for a statement.">SerdStatementFlag</a>;
<a name="l00125"></a>00125 
<a name="l00129"></a><a class="code" href="group__serd.html#ga77f5ab7cef4fbc88591eaa9970fcddad">00129</a> <span class="keyword">typedef</span> uint32_t <a class="code" href="group__serd.html#ga77f5ab7cef4fbc88591eaa9970fcddad" title="Bitwise OR of SerdNodeFlag values.">SerdStatementFlags</a>;
<a name="l00130"></a>00130 
<a name="l00140"></a><a class="code" href="group__serd.html#ga7ccd8d4fb2c3a6ad690ed6d6fe1b45fa">00140</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00146"></a><a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa028984ec3afe86cc5acc79df3b279b28">00146</a>     <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa028984ec3afe86cc5acc79df3b279b28" title="The type of a nonexistent node.">SERD_NOTHING</a> = 0,
<a name="l00147"></a>00147 
<a name="l00153"></a><a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faaa661a7e84228e32f0b979839658bf4c6">00153</a>     <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faaa661a7e84228e32f0b979839658bf4c6" title="Literal value.">SERD_LITERAL</a> = 1,
<a name="l00154"></a>00154 
<a name="l00163"></a><a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa7c01ef6de89d3245d4aed20da0736d24">00163</a>     <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa7c01ef6de89d3245d4aed20da0736d24" title="URI (absolute or relative).">SERD_URI</a> = 2,
<a name="l00164"></a>00164 
<a name="l00172"></a><a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa8a72fff2f6f94adeb11ccadf12c117d8">00172</a>     <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa8a72fff2f6f94adeb11ccadf12c117d8" title="CURIE, a shortened URI.">SERD_CURIE</a> = 3,
<a name="l00173"></a>00173 
<a name="l00182"></a><a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faaed82589a7355a2086b1c9cd91ec261c7">00182</a>     <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faaed82589a7355a2086b1c9cd91ec261c7" title="A blank node.">SERD_BLANK</a> = 4,
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 } <a class="code" href="group__serd.html#ga7ccd8d4fb2c3a6ad690ed6d6fe1b45fa" title="Type of a syntactic RDF node.">SerdType</a>;
<a name="l00185"></a>00185 
<a name="l00189"></a><a class="code" href="group__serd.html#gaf4ef160dcb28ebf5786dfd138807d8b5">00189</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00190"></a><a class="code" href="group__serd.html#ggaf4ef160dcb28ebf5786dfd138807d8b5adfeaf2c1a43d47c219474095fbba2a5a">00190</a>     <a class="code" href="group__serd.html#ggaf4ef160dcb28ebf5786dfd138807d8b5adfeaf2c1a43d47c219474095fbba2a5a" title="Contains line breaks (&#39;\n&#39; or &#39;\r&#39;)">SERD_HAS_NEWLINE</a> = 1,      
<a name="l00191"></a><a class="code" href="group__serd.html#ggaf4ef160dcb28ebf5786dfd138807d8b5ac3f09d734dd3ec4325e7b2f1c4bfdaca">00191</a>     <a class="code" href="group__serd.html#ggaf4ef160dcb28ebf5786dfd138807d8b5ac3f09d734dd3ec4325e7b2f1c4bfdaca" title="Contains quotes (&#39;&quot;&#39;)">SERD_HAS_QUOTE</a>   = 1 &lt;&lt; 1  
<a name="l00192"></a>00192 } <a class="code" href="group__serd.html#gaf4ef160dcb28ebf5786dfd138807d8b5" title="Flags indicating certain string properties relevant to serialisation.">SerdNodeFlag</a>;
<a name="l00193"></a>00193 
<a name="l00197"></a><a class="code" href="group__serd.html#gafa75ae761bd7490db787b2f9e237595a">00197</a> <span class="keyword">typedef</span> uint32_t <a class="code" href="group__serd.html#gafa75ae761bd7490db787b2f9e237595a" title="Bitwise OR of SerdNodeFlag values.">SerdNodeFlags</a>;
<a name="l00198"></a>00198 
<a name="l00202"></a><a class="code" href="structSerdNode.html">00202</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00203"></a><a class="code" href="structSerdNode.html#a50033bcc22d7a31e8515088ebf7d50ed">00203</a>     <span class="keyword">const</span> uint8_t* <a class="code" href="structSerdNode.html#a50033bcc22d7a31e8515088ebf7d50ed" title="Value string.">buf</a>;      
<a name="l00204"></a><a class="code" href="structSerdNode.html#a64b294c408ae9387ffaa78a742196985">00204</a>     <span class="keywordtype">size_t</span>         <a class="code" href="structSerdNode.html#a64b294c408ae9387ffaa78a742196985" title="Size in bytes (not including null)">n_bytes</a>;  
<a name="l00205"></a><a class="code" href="structSerdNode.html#ad4816721933bbd19f904ff67d3beb40e">00205</a>     <span class="keywordtype">size_t</span>         <a class="code" href="structSerdNode.html#ad4816721933bbd19f904ff67d3beb40e" title="Length in characters (not including null)">n_chars</a>;  
<a name="l00206"></a><a class="code" href="structSerdNode.html#a945891f8a5762a5739fc6ad7e023b50c">00206</a>     SerdNodeFlags  <a class="code" href="structSerdNode.html#a945891f8a5762a5739fc6ad7e023b50c" title="Node flags (e.g.">flags</a>;    
<a name="l00207"></a><a class="code" href="structSerdNode.html#ac415ada00df1883e7200cfa5c89b7fb9">00207</a>     <a class="code" href="group__serd.html#ga7ccd8d4fb2c3a6ad690ed6d6fe1b45fa" title="Type of a syntactic RDF node.">SerdType</a>       <a class="code" href="structSerdNode.html#ac415ada00df1883e7200cfa5c89b7fb9" title="Node type.">type</a>;     
<a name="l00208"></a>00208 } <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>;
<a name="l00209"></a>00209 
<a name="l00213"></a><a class="code" href="structSerdChunk.html">00213</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00214"></a><a class="code" href="structSerdChunk.html#a1fb21c23d2c2eecac5cf57b10ac370f6">00214</a>     <span class="keyword">const</span> uint8_t* <a class="code" href="structSerdChunk.html#a1fb21c23d2c2eecac5cf57b10ac370f6" title="Start of chunk.">buf</a>;  
<a name="l00215"></a><a class="code" href="structSerdChunk.html#a0a9e8bfa17dc87785f51262ba4769278">00215</a>     <span class="keywordtype">size_t</span>         <a class="code" href="structSerdChunk.html#a0a9e8bfa17dc87785f51262ba4769278" title="Length of chunk in bytes.">len</a>;  
<a name="l00216"></a>00216 } <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a>;
<a name="l00217"></a>00217 
<a name="l00225"></a><a class="code" href="structSerdURI.html">00225</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00226"></a><a class="code" href="structSerdURI.html#a98a86ede5302ca626225d097f31c2cf1">00226</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#a98a86ede5302ca626225d097f31c2cf1" title="Scheme.">scheme</a>;     
<a name="l00227"></a><a class="code" href="structSerdURI.html#a8e5ad5cdcf67e04b5704d879c17d8f78">00227</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#a8e5ad5cdcf67e04b5704d879c17d8f78" title="Authority.">authority</a>;  
<a name="l00228"></a><a class="code" href="structSerdURI.html#a127adf8cc7c49ef5dd5cb2f2064c08ef">00228</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#a127adf8cc7c49ef5dd5cb2f2064c08ef" title="Path prefix if relative.">path_base</a>;  
<a name="l00229"></a><a class="code" href="structSerdURI.html#a70b1052b735a7b0b602bce0398e2ad96">00229</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#a70b1052b735a7b0b602bce0398e2ad96" title="Path suffix.">path</a>;       
<a name="l00230"></a><a class="code" href="structSerdURI.html#a807d95462e4b97801f6a24115b2cdf46">00230</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#a807d95462e4b97801f6a24115b2cdf46" title="Query.">query</a>;      
<a name="l00231"></a><a class="code" href="structSerdURI.html#ab9e639a2f3c0183c4c8d0b44dc22a00a">00231</a>     <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a> <a class="code" href="structSerdURI.html#ab9e639a2f3c0183c4c8d0b44dc22a00a" title="Fragment.">fragment</a>;   
<a name="l00232"></a>00232 } <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>;
<a name="l00233"></a>00233 
<a name="l00242"></a><a class="code" href="group__serd.html#gae51da58ac1f1886c75ee2326495daeb2">00242</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00243"></a><a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2aa69f36bfcb18a88f514d5a763f8daaad">00243</a>     <a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2aa69f36bfcb18a88f514d5a763f8daaad" title="Abbreviate triples when possible.">SERD_STYLE_ABBREVIATED</a> = 1,       
<a name="l00244"></a><a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a1e7d60e2c01ba5b990ba96807ef429fe">00244</a>     <a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a1e7d60e2c01ba5b990ba96807ef429fe" title="Escape all non-ASCII characters.">SERD_STYLE_ASCII</a>       = 1 &lt;&lt; 1,  
<a name="l00245"></a><a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a5e2df70862512f94f6b2535ae63119be">00245</a>     <a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a5e2df70862512f94f6b2535ae63119be" title="Resolve URIs against base URI.">SERD_STYLE_RESOLVED</a>    = 1 &lt;&lt; 2,  
<a name="l00246"></a><a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a765d540f7a2e3dd87d57fa641c0a8488">00246</a>     <a class="code" href="group__serd.html#ggae51da58ac1f1886c75ee2326495daeb2a765d540f7a2e3dd87d57fa641c0a8488" title="Shorten URIs into CURIEs.">SERD_STYLE_CURIED</a>      = 1 &lt;&lt; 3   
<a name="l00247"></a>00247 } <a class="code" href="group__serd.html#gae51da58ac1f1886c75ee2326495daeb2" title="Syntax style options.">SerdStyle</a>;
<a name="l00248"></a>00248 
<a name="l00256"></a>00256 SERD_API
<a name="l00257"></a>00257 <span class="keywordtype">size_t</span>
<a name="l00258"></a>00258 <a class="code" href="group__serd.html#ga0fa8f5d6cd20c3a255bd812c7c29a540" title="UTF-8 strlen.">serd_strlen</a>(<span class="keyword">const</span> uint8_t* str, <span class="keywordtype">size_t</span>* n_bytes, SerdNodeFlags* flags);
<a name="l00259"></a>00259 
<a name="l00265"></a><a class="code" href="group__serd.html#gad75e4db3c2315c31a3a05043a811a698">00265</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a> <a class="code" href="group__serd.html#gad75e4db3c2315c31a3a05043a811a698">SERD_URI_NULL</a> = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
<a name="l00266"></a>00266 
<a name="l00270"></a>00270 SERD_API
<a name="l00271"></a>00271 <span class="keyword">const</span> uint8_t*
<a name="l00272"></a>00272 <a class="code" href="group__serd.html#ga5d9bf71e7a2beae95fdec28956aecc00" title="Return the local path for uri, or NULL if uri is not a file URI.">serd_uri_to_path</a>(<span class="keyword">const</span> uint8_t* uri);
<a name="l00273"></a>00273 
<a name="l00277"></a>00277 SERD_API
<a name="l00278"></a>00278 <span class="keywordtype">bool</span>
<a name="l00279"></a>00279 <a class="code" href="group__serd.html#gaaddea01f53227c6d984a94e94164f603" title="Return true iff utf8 starts with a valid URI scheme.">serd_uri_string_has_scheme</a>(<span class="keyword">const</span> uint8_t* utf8);
<a name="l00280"></a>00280 
<a name="l00284"></a>00284 SERD_API
<a name="l00285"></a>00285 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00286"></a>00286 <a class="code" href="group__serd.html#ga448a194144052f3edea6030d3a950eb0" title="Parse utf8, writing result to out.">serd_uri_parse</a>(<span class="keyword">const</span> uint8_t* utf8, <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* out);
<a name="l00287"></a>00287 
<a name="l00291"></a>00291 SERD_API
<a name="l00292"></a>00292 <span class="keywordtype">void</span>
<a name="l00293"></a>00293 <a class="code" href="group__serd.html#ga5af85594b54a6bcfd252cefeaf367f22" title="Set out to uri resolved against base.">serd_uri_resolve</a>(<span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* uri, <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* base, <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* out);
<a name="l00294"></a>00294 
<a name="l00298"></a><a class="code" href="group__serd.html#gaa05d69eb277967067d7805e80424a4a5">00298</a> <span class="keyword">typedef</span> size_t (*<a class="code" href="group__serd.html#gaa05d69eb277967067d7805e80424a4a5" title="Sink function for raw string output.">SerdSink</a>)(<span class="keyword">const</span> <span class="keywordtype">void</span>* buf, <span class="keywordtype">size_t</span> len, <span class="keywordtype">void</span>* stream);
<a name="l00299"></a>00299 
<a name="l00303"></a>00303 SERD_API
<a name="l00304"></a>00304 <span class="keywordtype">size_t</span>
<a name="l00305"></a>00305 <a class="code" href="group__serd.html#ga210c50472dac0f3772f1067382cd2763" title="Serialise uri with a series of calls to sink.">serd_uri_serialise</a>(<span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* uri, <a class="code" href="group__serd.html#gaa05d69eb277967067d7805e80424a4a5" title="Sink function for raw string output.">SerdSink</a> sink, <span class="keywordtype">void</span>* stream);
<a name="l00306"></a>00306 
<a name="l00313"></a><a class="code" href="group__serd.html#ga6e0fbb7791102622cf8caf174843b0d1">00313</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a> <a class="code" href="group__serd.html#ga6e0fbb7791102622cf8caf174843b0d1">SERD_NODE_NULL</a> = { 0, 0, 0, 0, <a class="code" href="group__serd.html#gga7ccd8d4fb2c3a6ad690ed6d6fe1b45faa028984ec3afe86cc5acc79df3b279b28" title="The type of a nonexistent node.">SERD_NOTHING</a> };
<a name="l00314"></a>00314 
<a name="l00320"></a>00320 SERD_API
<a name="l00321"></a>00321 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00322"></a>00322 <a class="code" href="group__serd.html#gae76caf1b4e7a6465c9cb73ec11f568ea" title="Make a (shallow) node from str.">serd_node_from_string</a>(<a class="code" href="group__serd.html#ga7ccd8d4fb2c3a6ad690ed6d6fe1b45fa" title="Type of a syntactic RDF node.">SerdType</a> type, <span class="keyword">const</span> uint8_t* str);
<a name="l00323"></a>00323 
<a name="l00329"></a>00329 SERD_API
<a name="l00330"></a>00330 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00331"></a>00331 <a class="code" href="group__serd.html#ga5a25ffa37534176468ffc8e4e6ce8d7c" title="Make a deep copy of node.">serd_node_copy</a>(<span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* node);
<a name="l00332"></a>00332 
<a name="l00336"></a>00336 SERD_API
<a name="l00337"></a>00337 <span class="keywordtype">bool</span>
<a name="l00338"></a>00338 <a class="code" href="group__serd.html#ga19e58c93a79966be1e74d9d92f5ea167" title="Return true iff a is equal to b.">serd_node_equals</a>(<span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* a, <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* b);
<a name="l00339"></a>00339 
<a name="l00343"></a>00343 SERD_API
<a name="l00344"></a>00344 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00345"></a>00345 <a class="code" href="group__serd.html#ga08700bbb56c7faaa1c4d979b922b839e" title="Simple wrapper for serd_node_new_uri to resolve a URI node.">serd_node_new_uri_from_node</a>(<span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri_node,
<a name="l00346"></a>00346                             <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>*  base,
<a name="l00347"></a>00347                             <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>*        out);
<a name="l00348"></a>00348 
<a name="l00352"></a>00352 SERD_API
<a name="l00353"></a>00353 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00354"></a>00354 <a class="code" href="group__serd.html#ga4285ae7168a9fd4a9dfb5c8ccce66222" title="Simple wrapper for serd_node_new_uri to resolve a URI string.">serd_node_new_uri_from_string</a>(<span class="keyword">const</span> uint8_t* str,
<a name="l00355"></a>00355                               <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* base,
<a name="l00356"></a>00356                               <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>*       out);
<a name="l00357"></a>00357 
<a name="l00368"></a>00368 SERD_API
<a name="l00369"></a>00369 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00370"></a>00370 <a class="code" href="group__serd.html#ga051e899e23a1f3cad1ae4a882ad010af" title="Create a new node by serialising uri into a new string.">serd_node_new_uri</a>(<span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* uri, <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* base, <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* out);
<a name="l00371"></a>00371 
<a name="l00378"></a>00378 SERD_API
<a name="l00379"></a>00379 <span class="keywordtype">void</span>
<a name="l00380"></a>00380 <a class="code" href="group__serd.html#ga037ef71317b8afff0a020072099cd14f" title="Free any data owned by node.">serd_node_free</a>(<a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* node);
<a name="l00381"></a>00381 
<a name="l00393"></a><a class="code" href="group__serd.html#gabaebfd07c1b20a0667ea6fbdd20c8b02">00393</a> <span class="keyword">typedef</span> <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a> (*<a class="code" href="group__serd.html#gabaebfd07c1b20a0667ea6fbdd20c8b02" title="Sink (callback) for base URI changes.">SerdBaseSink</a>)(<span class="keywordtype">void</span>*           handle,
<a name="l00394"></a>00394                                    <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00395"></a>00395 
<a name="l00401"></a><a class="code" href="group__serd.html#gab7bc1ad0f4daa2a75d6bbe9d9bd5d5d2">00401</a> <span class="keyword">typedef</span> <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a> (*<a class="code" href="group__serd.html#gab7bc1ad0f4daa2a75d6bbe9d9bd5d5d2" title="Sink (callback) for namespace definitions.">SerdPrefixSink</a>)(<span class="keywordtype">void</span>*           handle,
<a name="l00402"></a>00402                                      <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* name,
<a name="l00403"></a>00403                                      <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00404"></a>00404 
<a name="l00410"></a><a class="code" href="group__serd.html#ga7bbc7db04ee8b46ab62908e859f2a53b">00410</a> <span class="keyword">typedef</span> <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a> (*<a class="code" href="group__serd.html#ga7bbc7db04ee8b46ab62908e859f2a53b" title="Sink (callback) for statements.">SerdStatementSink</a>)(<span class="keywordtype">void</span>*              handle,
<a name="l00411"></a>00411                                         SerdStatementFlags flags,
<a name="l00412"></a>00412                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    graph,
<a name="l00413"></a>00413                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    subject,
<a name="l00414"></a>00414                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    predicate,
<a name="l00415"></a>00415                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    object,
<a name="l00416"></a>00416                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    object_datatype,
<a name="l00417"></a>00417                                         <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    object_lang);
<a name="l00418"></a>00418 
<a name="l00426"></a><a class="code" href="group__serd.html#ga86485e6a588b9504f2355f3d6b4b241a">00426</a> <span class="keyword">typedef</span> <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a> (*<a class="code" href="group__serd.html#ga86485e6a588b9504f2355f3d6b4b241a" title="Sink (callback) for anonymous node end markers.">SerdEndSink</a>)(<span class="keywordtype">void</span>*           handle,
<a name="l00427"></a>00427                                   <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* node);
<a name="l00428"></a>00428 
<a name="l00438"></a>00438 SERD_API
<a name="l00439"></a>00439 <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*
<a name="l00440"></a>00440 <a class="code" href="group__serd.html#ga64ffdd637dad39a2483e727125c2c285" title="Create a new environment.">serd_env_new</a>(<span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* base_uri);
<a name="l00441"></a>00441 
<a name="l00445"></a>00445 SERD_API
<a name="l00446"></a>00446 <span class="keywordtype">void</span>
<a name="l00447"></a>00447 <a class="code" href="group__serd.html#ga09d49846b7fc7dbd9a4c0fdc1e84e915" title="Free ns.">serd_env_free</a>(<a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>* env);
<a name="l00448"></a>00448 
<a name="l00452"></a>00452 SERD_API
<a name="l00453"></a>00453 <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*
<a name="l00454"></a>00454 <a class="code" href="group__serd.html#ga94b861ea65187556a473dcb668ab8667" title="Get the current base URI.">serd_env_get_base_uri</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>* env,
<a name="l00455"></a>00455                       <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>*       out);
<a name="l00456"></a>00456 
<a name="l00460"></a>00460 SERD_API
<a name="l00461"></a>00461 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00462"></a>00462 <a class="code" href="group__serd.html#gaddd2dd19cd0a36ce4ea39ade113eab62" title="Set the current base URI.">serd_env_set_base_uri</a>(<a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*        env,
<a name="l00463"></a>00463                       <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00464"></a>00464 
<a name="l00468"></a>00468 SERD_API
<a name="l00469"></a>00469 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00470"></a>00470 <a class="code" href="group__serd.html#gafd42745aa586531608eb4a23c560cef2" title="Set a namespace prefix.">serd_env_set_prefix</a>(<a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*        env,
<a name="l00471"></a>00471                     <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* name,
<a name="l00472"></a>00472                     <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00473"></a>00473 
<a name="l00477"></a>00477 SERD_API
<a name="l00478"></a>00478 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00479"></a>00479 <a class="code" href="group__serd.html#gac41d573e81de34506463612e0c464889" title="Set a namespace prefix.">serd_env_set_prefix_from_strings</a>(<a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*       env,
<a name="l00480"></a>00480                                  <span class="keyword">const</span> uint8_t* name,
<a name="l00481"></a>00481                                  <span class="keyword">const</span> uint8_t* uri);
<a name="l00482"></a>00482 
<a name="l00486"></a>00486 SERD_API
<a name="l00487"></a>00487 <span class="keywordtype">bool</span>
<a name="l00488"></a>00488 <a class="code" href="group__serd.html#gabeffe38076753a62dab52e0eeb1ff770" title="Qualify uri into a CURIE if possible.">serd_env_qualify</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*  env,
<a name="l00489"></a>00489                  <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri,
<a name="l00490"></a>00490                  <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*       prefix,
<a name="l00491"></a>00491                  <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a>*      suffix);
<a name="l00492"></a>00492 
<a name="l00496"></a>00496 SERD_API
<a name="l00497"></a>00497 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00498"></a>00498 <a class="code" href="group__serd.html#gac5a39f1201094a76d12b0bb509b8536f" title="Expand curie.">serd_env_expand</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*  env,
<a name="l00499"></a>00499                 <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* curie,
<a name="l00500"></a>00500                 <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a>*      uri_prefix,
<a name="l00501"></a>00501                 <a class="code" href="structSerdChunk.html" title="An unterminated string fragment.">SerdChunk</a>*      uri_suffix);
<a name="l00502"></a>00502 
<a name="l00506"></a>00506 SERD_API
<a name="l00507"></a>00507 <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>
<a name="l00508"></a>00508 <a class="code" href="group__serd.html#ga625355c8383d9db384edd7d95058b712" title="Expand node, which must be a CURIE or URI, to a full URI.">serd_env_expand_node</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*  env,
<a name="l00509"></a>00509                      <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* node);
<a name="l00510"></a>00510 
<a name="l00514"></a>00514 SERD_API
<a name="l00515"></a>00515 <span class="keywordtype">void</span>
<a name="l00516"></a>00516 <a class="code" href="group__serd.html#ga4e179ef13f5ad5ec23ff0b9b9d944c8e" title="Call func for each prefix defined in env.">serd_env_foreach</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>* env,
<a name="l00517"></a>00517                  <a class="code" href="group__serd.html#gab7bc1ad0f4daa2a75d6bbe9d9bd5d5d2" title="Sink (callback) for namespace definitions.">SerdPrefixSink</a> func,
<a name="l00518"></a>00518                  <span class="keywordtype">void</span>*          handle);
<a name="l00519"></a>00519 
<a name="l00529"></a>00529 SERD_API
<a name="l00530"></a>00530 <a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>*
<a name="l00531"></a>00531 <a class="code" href="group__serd.html#ga99a5f1ae546409bcb9a56d89e68902bf" title="Create a new RDF reader.">serd_reader_new</a>(<a class="code" href="group__serd.html#ga42683406fcfa9046b28dd951cefd3391" title="RDF syntax type.">SerdSyntax</a>        syntax,
<a name="l00532"></a>00532                 <span class="keywordtype">void</span>*             handle,
<a name="l00533"></a>00533                 <span class="keywordtype">void</span>              (*free_handle)(<span class="keywordtype">void</span>*),
<a name="l00534"></a>00534                 <a class="code" href="group__serd.html#gabaebfd07c1b20a0667ea6fbdd20c8b02" title="Sink (callback) for base URI changes.">SerdBaseSink</a>      base_sink,
<a name="l00535"></a>00535                 <a class="code" href="group__serd.html#gab7bc1ad0f4daa2a75d6bbe9d9bd5d5d2" title="Sink (callback) for namespace definitions.">SerdPrefixSink</a>    prefix_sink,
<a name="l00536"></a>00536                 <a class="code" href="group__serd.html#ga7bbc7db04ee8b46ab62908e859f2a53b" title="Sink (callback) for statements.">SerdStatementSink</a> statement_sink,
<a name="l00537"></a>00537                 <a class="code" href="group__serd.html#ga86485e6a588b9504f2355f3d6b4b241a" title="Sink (callback) for anonymous node end markers.">SerdEndSink</a>       end_sink);
<a name="l00538"></a>00538 
<a name="l00542"></a>00542 SERD_API
<a name="l00543"></a>00543 <span class="keywordtype">void</span>*
<a name="l00544"></a>00544 <a class="code" href="group__serd.html#gaad5ac334bdf5d0c531dc0526c2310862" title="Return the handle passed to serd_reader_new.">serd_reader_get_handle</a>(<span class="keyword">const</span> <a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>* reader);
<a name="l00545"></a>00545 
<a name="l00555"></a>00555 SERD_API
<a name="l00556"></a>00556 <span class="keywordtype">void</span>
<a name="l00557"></a>00557 <a class="code" href="group__serd.html#ga18b1d46abcd156310e0b18221aa80e31" title="Set a prefix to be added to all blank node identifiers.">serd_reader_add_blank_prefix</a>(<a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>*    reader,
<a name="l00558"></a>00558                              <span class="keyword">const</span> uint8_t* prefix);
<a name="l00559"></a>00559 
<a name="l00563"></a>00563 SERD_API
<a name="l00564"></a>00564 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00565"></a>00565 <a class="code" href="group__serd.html#gad0fe4c7359478679e69b397620dc7f52" title="Read a file at a given uri.">serd_reader_read_file</a>(<a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>*    reader,
<a name="l00566"></a>00566                       <span class="keyword">const</span> uint8_t* uri);
<a name="l00567"></a>00567 
<a name="l00571"></a>00571 SERD_API
<a name="l00572"></a>00572 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00573"></a>00573 <a class="code" href="group__serd.html#ga001d19e0eac46f43a011f6266a7b3d59" title="Read file.">serd_reader_read_file_handle</a>(<a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>*    reader,
<a name="l00574"></a>00574                              FILE*          file,
<a name="l00575"></a>00575                              <span class="keyword">const</span> uint8_t* name);
<a name="l00576"></a>00576 
<a name="l00580"></a>00580 SERD_API
<a name="l00581"></a>00581 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00582"></a>00582 <a class="code" href="group__serd.html#ga3ebc4139f1b992135bdd86fc6959b566" title="Read utf8.">serd_reader_read_string</a>(<a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>* me, <span class="keyword">const</span> uint8_t* utf8);
<a name="l00583"></a>00583 
<a name="l00587"></a>00587 SERD_API
<a name="l00588"></a>00588 <span class="keywordtype">void</span>
<a name="l00589"></a>00589 <a class="code" href="group__serd.html#ga26a4070db2f9ef59c94adeaa9dac6752" title="Free reader.">serd_reader_free</a>(<a class="code" href="group__serd.html#ga69c709eacb062f9e7777726ec80b2796" title="RDF reader.">SerdReader</a>* reader);
<a name="l00590"></a>00590 
<a name="l00600"></a>00600 SERD_API
<a name="l00601"></a>00601 <a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*
<a name="l00602"></a>00602 <a class="code" href="group__serd.html#gae87f48adca211a7fa2c0432e9ba68d29" title="Create a new RDF writer.">serd_writer_new</a>(<a class="code" href="group__serd.html#ga42683406fcfa9046b28dd951cefd3391" title="RDF syntax type.">SerdSyntax</a>     syntax,
<a name="l00603"></a>00603                 <a class="code" href="group__serd.html#gae51da58ac1f1886c75ee2326495daeb2" title="Syntax style options.">SerdStyle</a>      style,
<a name="l00604"></a>00604                 <a class="code" href="group__serd.html#gaea4226dd80abea7afa05986f195d4755" title="Environment.">SerdEnv</a>*       env,
<a name="l00605"></a>00605                 <span class="keyword">const</span> <a class="code" href="structSerdURI.html" title="A parsed URI.">SerdURI</a>* base_uri,
<a name="l00606"></a>00606                 <a class="code" href="group__serd.html#gaa05d69eb277967067d7805e80424a4a5" title="Sink function for raw string output.">SerdSink</a>       sink,
<a name="l00607"></a>00607                 <span class="keywordtype">void</span>*          stream);
<a name="l00608"></a>00608 
<a name="l00612"></a>00612 SERD_API
<a name="l00613"></a>00613 <span class="keywordtype">void</span>
<a name="l00614"></a>00614 <a class="code" href="group__serd.html#ga50c06e138081328c46e9dfa593814f73" title="Free writer.">serd_writer_free</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>* writer);
<a name="l00615"></a>00615 
<a name="l00619"></a>00619 SERD_API
<a name="l00620"></a>00620 <span class="keywordtype">void</span>
<a name="l00621"></a>00621 <a class="code" href="group__serd.html#gaa924d2dcd23afb02ade707be75c7771b" title="Set a prefix to be removed from matching blank node identifiers.">serd_writer_chop_blank_prefix</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*    writer,
<a name="l00622"></a>00622                               <span class="keyword">const</span> uint8_t* prefix);
<a name="l00623"></a>00623 
<a name="l00629"></a>00629 SERD_API
<a name="l00630"></a>00630 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00631"></a>00631 <a class="code" href="group__serd.html#ga4149ade7ac611ba531af6d47d821ae3e" title="Set the current output base URI (and emit directive if applicable).">serd_writer_set_base_uri</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*     writer,
<a name="l00632"></a>00632                          <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00633"></a>00633 
<a name="l00639"></a>00639 SERD_API
<a name="l00640"></a>00640 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00641"></a>00641 <a class="code" href="group__serd.html#gae850607b6b240aea9d3676b1230c3c63" title="Set a namespace prefix (and emit directive if applicable).">serd_writer_set_prefix</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*     writer,
<a name="l00642"></a>00642                        <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* name,
<a name="l00643"></a>00643                        <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* uri);
<a name="l00644"></a>00644 
<a name="l00650"></a>00650 SERD_API
<a name="l00651"></a>00651 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00652"></a>00652 <a class="code" href="group__serd.html#ga0c055816f6eb769e55128701402e68b4" title="Write a statement.">serd_writer_write_statement</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*        writer,
<a name="l00653"></a>00653                             SerdStatementFlags flags,
<a name="l00654"></a>00654                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    graph,
<a name="l00655"></a>00655                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    subject,
<a name="l00656"></a>00656                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    predicate,
<a name="l00657"></a>00657                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    <span class="keywordtype">object</span>,
<a name="l00658"></a>00658                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    object_datatype,
<a name="l00659"></a>00659                             <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>*    object_lang);
<a name="l00660"></a>00660 
<a name="l00666"></a>00666 SERD_API
<a name="l00667"></a>00667 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00668"></a>00668 <a class="code" href="group__serd.html#ga2452df8462454202657ecad76bb26812" title="Mark the end of an anonymous node&#39;s description.">serd_writer_end_anon</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>*     writer,
<a name="l00669"></a>00669                      <span class="keyword">const</span> <a class="code" href="structSerdNode.html" title="A syntactic RDF node.">SerdNode</a>* node);
<a name="l00670"></a>00670 
<a name="l00674"></a>00674 SERD_API
<a name="l00675"></a>00675 <a class="code" href="group__serd.html#ga104d544e48b6282ef2447bb3ac7c330d" title="Return status code.">SerdStatus</a>
<a name="l00676"></a>00676 <a class="code" href="group__serd.html#gad983c2d9400df1819b821583188b1025" title="Finish a write.">serd_writer_finish</a>(<a class="code" href="group__serd.html#gaaaa09490e19dff0180251f1e2524e6f0" title="RDF writer.">SerdWriter</a>* writer);
<a name="l00677"></a>00677 
<a name="l00683"></a>00683 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00684"></a>00684 <span class="preprocessor"></span>}  <span class="comment">/* extern &quot;C&quot; */</span>
<a name="l00685"></a>00685 <span class="preprocessor">#endif</span>
<a name="l00686"></a>00686 <span class="preprocessor"></span>
<a name="l00687"></a>00687 <span class="preprocessor">#endif  </span><span class="comment">/* SERD_SERD_H */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:05:40 for Serd by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>