diff options
author | David Robillard <d@drobilla.net> | 2020-05-30 21:32:37 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 7026fb72f85e349eea64a62bd924358c608520cc (patch) | |
tree | 857cef38b39ceb3687216e91904b5edc7bf48a0c /src/sink.h | |
parent | 797eb91498ea83003922b70aa943925b4fb81bb5 (diff) | |
download | serd-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.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |