aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-06 16:48:51 +0000
committerDavid Robillard <d@drobilla.net>2011-05-06 16:48:51 +0000
commit00433beb65e513283dbd1b05d4232fa2c8e0de69 (patch)
treebd677dea97b2e00d9e996dcbc6dc162960b7dd07 /serd
parent246aa2aca72b5580ceae29487c80a2dee567bde2 (diff)
downloadserd-00433beb65e513283dbd1b05d4232fa2c8e0de69.tar.gz
serd-00433beb65e513283dbd1b05d4232fa2c8e0de69.tar.bz2
serd-00433beb65e513283dbd1b05d4232fa2c8e0de69.zip
Make writer methods directly compatible with reader callbacks.
Connect writer directly to reader in serdi. git-svn-id: http://svn.drobilla.net/serd/trunk@164 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h
index de090cf4..d1f19cd3 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -559,14 +559,18 @@ serd_writer_free(SerdWriter* writer);
/**
Set the current output base URI (and emit directive if applicable).
+
+ Note this function can be safely casted to SerdBaseSink.
*/
SERD_API
SerdStatus
-serd_writer_set_base_uri(SerdWriter* writer,
- const SerdURI* uri);
+serd_writer_set_base_uri(SerdWriter* writer,
+ const SerdNode* uri);
/**
Set a namespace prefix (and emit directive if applicable).
+
+ Note this function can be safely casted to SerdPrefixSink.
*/
SERD_API
SerdStatus
@@ -576,6 +580,8 @@ serd_writer_set_prefix(SerdWriter* writer,
/**
Write a statement.
+
+ Note this function can be safely casted to SerdStatementSink.
*/
SERD_API
SerdStatus
@@ -589,6 +595,8 @@ serd_writer_write_statement(SerdWriter* writer,
/**
Mark the end of an anonymous node's description.
+
+ Note this function can be safely casted to SerdEndSink.
*/
SERD_API
SerdStatus