summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-28 23:36:32 +0000
committerDavid Robillard <d@drobilla.net>2011-01-28 23:36:32 +0000
commit9d9cd92a474f8ad5b8c75d3bedede0960281ef48 (patch)
tree91ff2827a28ddaaf5fce3a543eb947f7aea6c692 /sord
parent04da598576390d6bf0ed73865b6b3272fdf2840b (diff)
downloadsord-9d9cd92a474f8ad5b8c75d3bedede0960281ef48.tar.gz
sord-9d9cd92a474f8ad5b8c75d3bedede0960281ef48.tar.bz2
sord-9d9cd92a474f8ad5b8c75d3bedede0960281ef48.zip
Syntax support via Serd.
Preliminary syntax-using command line program. git-svn-id: http://svn.drobilla.net/sord/trunk@9 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-rw-r--r--sord/sord.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sord/sord.h b/sord/sord.h
index 49eb9d1..0820f9b 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -78,7 +78,7 @@ typedef enum {
/** Create a new store. */
SORD_API
Sord
-sord_new();
+sord_new(void);
/** Set a store option.
* Options are RDF properties (with the store as the subject), with the
@@ -204,6 +204,10 @@ SORD_API
const char*
sord_node_get_string(SordNode node);
+SORD_API
+const char*
+sord_node_get_string_counted(SordNode node, size_t* len);
+
/** Set an opaque user pointer on a node.
* Sord does not interpret the user pointer in any way, but it will be
* preserved on the node until the cache is cleared.
@@ -338,6 +342,15 @@ bool
sord_tuple_match(const SordTuple x, const SordTuple y);
/** @} */
+/** @name Serialisation
+ * @{
+ */
+
+SORD_API
+bool
+sord_read_file(Sord sord, const uint8_t* uri);
+
+/** @} */
/** @} */