From 436b2362b00543e67194664318e96d965fe390b6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 May 2018 19:37:04 +0200 Subject: Add sink API --- serd/serd.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index 514fccf4..b9cced8d 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -916,6 +916,35 @@ serd_env_foreach(const SerdEnv* env, SerdPrefixSink func, void* handle); +/** + @} + @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 -- cgit v1.2.1