aboutsummaryrefslogtreecommitdiffstats
path: root/src/sink.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-05-30 21:32:37 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:59 +0100
commit7026fb72f85e349eea64a62bd924358c608520cc (patch)
tree857cef38b39ceb3687216e91904b5edc7bf48a0c /src/sink.h
parent797eb91498ea83003922b70aa943925b4fb81bb5 (diff)
downloadserd-7026fb72f85e349eea64a62bd924358c608520cc.tar.gz
serd-7026fb72f85e349eea64a62bd924358c608520cc.tar.bz2
serd-7026fb72f85e349eea64a62bd924358c608520cc.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 d9b5c59c..c1d6a432 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