diff options
Diffstat (limited to 'sratom')
-rw-r--r-- | sratom/sratom.h | 36 |
1 files changed, 13 insertions, 23 deletions
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 <stdint.h> -#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); /** @} |