aboutsummaryrefslogtreecommitdiffstats
path: root/src/sink.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 19:18:28 -0500
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commitb983d2a94b0f84b4c06889be77fbdacc502f2d7b (patch)
tree8fa3a46d95fc6b08aa323797436aa5582522b1cd /src/sink.h
parent846553f8894264d64cdd1dfb08df56fe08189dac (diff)
downloadserd-b983d2a94b0f84b4c06889be77fbdacc502f2d7b.tar.gz
serd-b983d2a94b0f84b4c06889be77fbdacc502f2d7b.tar.bz2
serd-b983d2a94b0f84b4c06889be77fbdacc502f2d7b.zip
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.
Diffstat (limited to 'src/sink.h')
-rw-r--r--src/sink.h9
1 files changed, 3 insertions, 6 deletions
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