From 3ece29105d12819e602dbd0309f4ffda321a2ea3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Feb 2012 04:49:07 +0000 Subject: Tuple serialisation. git-svn-id: http://svn.drobilla.net/lad/trunk/seriatom@3990 a436a847-0d15-0410-975c-d299462d15a1 --- seriatom/seriatom.h | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'seriatom') diff --git a/seriatom/seriatom.h b/seriatom/seriatom.h index 8381778..61bd46a 100644 --- a/seriatom/seriatom.h +++ b/seriatom/seriatom.h @@ -54,13 +54,31 @@ 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); -- cgit v1.2.1