From 55ff753b52b08a3ee987376faa528c93e7a84184 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 23 Feb 2012 04:17:01 +0000 Subject: Clean up API. git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@3997 a436a847-0d15-0410-975c-d299462d15a1 --- sratom/sratom.h | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'sratom') diff --git a/sratom/sratom.h b/sratom/sratom.h index d063d8c..68d1390 100644 --- a/sratom/sratom.h +++ b/sratom/sratom.h @@ -23,7 +23,6 @@ #include -#include "lv2/lv2plug.in/ns/ext/atom/atom.h" #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "serd/serd.h" @@ -75,39 +74,30 @@ void sratom_free(Sratom* sratom); /** - Serialise an Atom to a SerdWriter. + Write an Atom to RDF. */ SRATOM_API void -atom_to_rdf(Sratom* sratom, - const SerdNode* subject, - const SerdNode* predicate, - const LV2_Atom* atom, - uint32_t flags); +sratom_write(Sratom* sratom, + uint32_t flags, + const SerdNode* subject, + const SerdNode* predicate, + uint32_t type_urid, + uint32_t size, + const void* body); /** - Serialise an Atom body to a SerdWriter. + Serialise an Atom to a Turtle string. + The returned string must be free()'d by the caller. */ SRATOM_API -void -atom_body_to_rdf(Sratom* sratom, +char* +sratom_to_turtle(Sratom* sratom, const SerdNode* subject, const SerdNode* predicate, uint32_t type_urid, uint32_t size, - const void* body, - uint32_t flags); - -/** - Serialise an Atom to a Turtle string. - The returned string must be free()'d by the caller. -*/ -SRATOM_API -char* -atom_to_turtle(Sratom* sratom, - const SerdNode* subject, - const SerdNode* predicate, - const LV2_Atom* atom); + const void* body); /** @} -- cgit v1.2.1