summaryrefslogtreecommitdiffstats
path: root/sratom/sratom.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-08 18:01:03 +0000
committerDavid Robillard <d@drobilla.net>2012-03-08 18:01:03 +0000
commit6b06af9f9cd3e0fbc7548ade67f73af11cf0ee3d (patch)
tree8956b22d6db32ff08d42d6cc96e07273769e40ed /sratom/sratom.h
parent2bdd503519c445c5617804376144cb0bdebf9629 (diff)
downloadsratom-6b06af9f9cd3e0fbc7548ade67f73af11cf0ee3d.tar.gz
sratom-6b06af9f9cd3e0fbc7548ade67f73af11cf0ee3d.tar.bz2
sratom-6b06af9f9cd3e0fbc7548ade67f73af11cf0ee3d.zip
Write paths as file URIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4033 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'sratom/sratom.h')
-rw-r--r--sratom/sratom.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sratom/sratom.h b/sratom/sratom.h
index 6398135..b1ef071 100644
--- a/sratom/sratom.h
+++ b/sratom/sratom.h
@@ -77,9 +77,10 @@ sratom_free(Sratom* sratom);
/**
Write an Atom to RDF.
The resulting serialised atom is written to @p writer.
+ @return 0 on success, or a non-zero error code otherwise.
*/
SRATOM_API
-void
+int
sratom_write(Sratom* sratom,
LV2_URID_Unmap* unmap,
SerdWriter* writer,
@@ -110,6 +111,7 @@ SRATOM_API
char*
sratom_to_turtle(Sratom* sratom,
LV2_URID_Unmap* unmap,
+ const char* base_uri,
const SerdNode* subject,
const SerdNode* predicate,
uint32_t type,
@@ -123,6 +125,7 @@ sratom_to_turtle(Sratom* sratom,
SRATOM_API
LV2_Atom*
sratom_from_turtle(Sratom* sratom,
+ const char* base_uri,
const SerdNode* subject,
const SerdNode* predicate,
const char* str);