diff options
author | David Robillard <d@drobilla.net> | 2011-02-03 04:43:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-03 04:43:37 +0000 |
commit | 5bc02bf31c689fe4a3758c8b484d220d4de33992 (patch) | |
tree | a9a425b59562908e09aa4cc202677115dabda860 /src/sord_internal.h | |
parent | c548e35abaf65266f2d806e375cb8e38adf705c4 (diff) | |
download | sord-5bc02bf31c689fe4a3758c8b484d220d4de33992.tar.gz sord-5bc02bf31c689fe4a3758c8b484d220d4de33992.tar.bz2 sord-5bc02bf31c689fe4a3758c8b484d220d4de33992.zip |
Add SordTupleIndex enumeration for more readable Tuple code.
Add sord_node_equals.
Add sord_read_file_handle and add graph URI parameter to sord_read_file.
Resolve relative URIs when parsing into a model.
Read literal datatype or language when parsing into a model.
Bettern debug printing.
Add GOPS index by default.
Add export_indluces to library in wscript for building against sord locally.
git-svn-id: http://svn.drobilla.net/sord/trunk@15 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r-- | src/sord_internal.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h new file mode 100644 index 0000000..b7a3398 --- /dev/null +++ b/src/sord_internal.h @@ -0,0 +1,34 @@ +/* Sord, a lightweight RDF model library. + * Copyright 2010-2011 David Robillard <d@drobilla.net> + * + * Sord is free software: you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Sord is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SORD_INTERNAL_H +#define SORD_INTERNAL_H + +#include "sord/sord.h" + +/** Node */ +struct _SordNode { + SordNodeType type; ///< SordNodeType + size_t n_bytes; ///< Length of data in bytes (including terminator) + SordCount refs; ///< Reference count (i.e. number of containing tuples) + void* user_data; ///< Opaque user data + SordNode datatype; ///< Literal data type (ID of a URI node, or 0) + const char* lang; ///< Literal language (interned string) + char* buf; ///< Value (string) +}; + +#endif // SORD_INTERNAL_H |