diff options
author | David Robillard <d@drobilla.net> | 2018-05-22 19:37:04 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 21:10:21 +0200 |
commit | 436b2362b00543e67194664318e96d965fe390b6 (patch) | |
tree | 28ef1197a3134f3bc905644c1182caf7dd8aed72 /serd | |
parent | dc9eaf381cb774ce9ddf57613e99fb7e381da041 (diff) | |
download | serd-436b2362b00543e67194664318e96d965fe390b6.tar.gz serd-436b2362b00543e67194664318e96d965fe390b6.tar.bz2 serd-436b2362b00543e67194664318e96d965fe390b6.zip |
Add sink API
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index 514fccf4..b9cced8d 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -918,6 +918,35 @@ serd_env_foreach(const SerdEnv* env, /** @} + @name Sink + @{ +*/ + +SERD_API +SerdStatus +serd_sink_set_base(const SerdSinkInterface* sink, const SerdNode* uri); + +SERD_API +SerdStatus +serd_sink_set_prefix(const SerdSinkInterface* sink, + const SerdNode* name, + const SerdNode* uri); + +SERD_API +SerdStatus +serd_sink_write_statement(const SerdSinkInterface* sink, + const SerdStatement* statement); + +SERD_API +SerdStatus +serd_sink_write_range(const SerdSinkInterface* sink, SerdIter* iter); + +SERD_API +SerdStatus +serd_sink_end(const SerdSinkInterface* sink, const SerdNode* node); + +/** + @} @name Reader @{ */ |