Mercurial > hg > sv-dependency-builds
comparison src/sord-0.12.0/src/sord_internal.h @ 0:c7265573341e
Import initial set of sources
author | Chris Cannam |
---|---|
date | Mon, 18 Mar 2013 14:12:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c7265573341e |
---|---|
1 /* | |
2 Copyright 2011 David Robillard <http://drobilla.net> | |
3 | |
4 Permission to use, copy, modify, and/or distribute this software for any | |
5 purpose with or without fee is hereby granted, provided that the above | |
6 copyright notice and this permission notice appear in all copies. | |
7 | |
8 THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
9 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
10 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
11 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
12 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
13 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
14 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
15 */ | |
16 | |
17 #ifndef SORD_SORD_INTERNAL_H | |
18 #define SORD_SORD_INTERNAL_H | |
19 | |
20 #include <stddef.h> | |
21 #include <stdint.h> | |
22 | |
23 #include "sord/sord.h" | |
24 | |
25 /** Resource node metadata */ | |
26 typedef struct { | |
27 size_t refs_as_obj; ///< References as a quad object | |
28 } SordResourceMetadata; | |
29 | |
30 /** Literal node metadata */ | |
31 typedef struct { | |
32 SordNode* datatype; ///< Optional literal data type URI | |
33 char lang[16]; ///< Optional language tag | |
34 } SordLiteralMetadata; | |
35 | |
36 /** Node */ | |
37 struct SordNodeImpl { | |
38 SerdNode node; ///< Serd node | |
39 size_t refs; ///< Reference count (# of containing quads) | |
40 union { | |
41 SordResourceMetadata res; | |
42 SordLiteralMetadata lit; | |
43 } meta; | |
44 }; | |
45 | |
46 #endif /* SORD_SORD_INTERNAL_H */ |