From c2e59da8865a8c5719b8ddaf5f68204729a8ebab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Mar 2021 19:38:01 -0500 Subject: Add SerdSink interface and hide implementations --- src/sink.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/sink.h (limited to 'src/sink.h') diff --git a/src/sink.h b/src/sink.h new file mode 100644 index 00000000..98884fe2 --- /dev/null +++ b/src/sink.h @@ -0,0 +1,21 @@ +// Copyright 2011-2020 David Robillard +// SPDX-License-Identifier: ISC + +#ifndef SERD_SRC_SINK_H +#define SERD_SRC_SINK_H + +#include "serd/sink.h" + +/** + An interface that receives a stream of RDF data. +*/ +struct SerdSinkImpl { + void* handle; + SerdFreeFunc free_handle; + SerdBaseFunc base; + SerdPrefixFunc prefix; + SerdStatementFunc statement; + SerdEndFunc end; +}; + +#endif // SERD_SRC_SINK_H -- cgit v1.2.1