diff options
author | David Robillard <d@drobilla.net> | 2012-02-23 04:17:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-23 04:17:01 +0000 |
commit | 55ff753b52b08a3ee987376faa528c93e7a84184 (patch) | |
tree | 82db75bf367c1dd70ca80c7bb60741474c75c0c0 /sratom | |
parent | 9423949cfe2975a5ed13c514c623127325919070 (diff) | |
download | sratom-55ff753b52b08a3ee987376faa528c93e7a84184.tar.gz sratom-55ff753b52b08a3ee987376faa528c93e7a84184.tar.bz2 sratom-55ff753b52b08a3ee987376faa528c93e7a84184.zip |
Clean up API.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@3997 a436a847-0d15-0410-975c-d299462d15a1
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); /** @} |