From 7a0d649727b4b5a15a88a1270aa444d4ed8ce779 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Feb 2021 19:18:28 -0500 Subject: Replace multiple stream callbacks with SerdEvent This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future. --- src/sink.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/sink.h') diff --git a/src/sink.h b/src/sink.h index e0f99a53..6e8dffe3 100644 --- a/src/sink.h +++ b/src/sink.h @@ -23,12 +23,9 @@ An interface that receives a stream of RDF data. */ struct SerdSinkImpl { - void* handle; - SerdFreeFunc free_handle; - SerdBaseFunc base; - SerdPrefixFunc prefix; - SerdStatementFunc statement; - SerdEndFunc end; + void* handle; + SerdFreeFunc free_handle; + SerdEventFunc on_event; }; #endif // SERD_SINK_H -- cgit v1.2.1