summaryrefslogtreecommitdiffstats
path: root/seriatom
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-21 04:49:07 +0000
committerDavid Robillard <d@drobilla.net>2012-02-21 04:49:07 +0000
commit3ece29105d12819e602dbd0309f4ffda321a2ea3 (patch)
tree6655ebd358424e43387649318b8631ebc0b6d389 /seriatom
parentee1e682e0a3787a4b293e55a09d2394bd1d47252 (diff)
downloadsratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.tar.gz
sratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.tar.bz2
sratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.zip
Tuple serialisation.
git-svn-id: http://svn.drobilla.net/lad/trunk/seriatom@3990 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'seriatom')
-rw-r--r--seriatom/seriatom.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/seriatom/seriatom.h b/seriatom/seriatom.h
index 8381778..61bd46a 100644
--- a/seriatom/seriatom.h
+++ b/seriatom/seriatom.h
@@ -55,12 +55,30 @@ extern "C" {
*/
/**
+ Atom serialiser.
+*/
+typedef struct SeriatomImpl Seriatom;
+
+/**
+ Create a new Atom serialiser.
+*/
+SERIATOM_API
+Seriatom*
+seriatom_new(LV2_URID_Unmap* unmap);
+
+/**
+ Free an Atom serialisation.
+*/
+SERIATOM_API
+void
+seriatom_free(Seriatom* seriatom);
+
+/**
Serialise an Atom to a SerdWriter.
*/
SERIATOM_API
void
-atom_to_rdf(SerdWriter* writer,
- LV2_URID_Unmap* unmap,
+atom_to_rdf(Seriatom* seriatom,
const SerdNode* subject,
const SerdNode* predicate,
const LV2_Atom* atom,
@@ -72,7 +90,7 @@ atom_to_rdf(SerdWriter* writer,
*/
SERIATOM_API
char*
-atom_to_turtle(LV2_URID_Unmap* unmap,
+atom_to_turtle(Seriatom* seriatom,
const SerdNode* subject,
const SerdNode* predicate,
const LV2_Atom* atom);