diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 19:47:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | 63edb5d1665e7b7a9a4750c063d27a8ae7d75a77 (patch) | |
tree | 77867d26bffa81fa64f8c6b97798134b0327b4e9 /serd | |
parent | 6938e50cc21b5acdfbf526e221ac4823f17dba3a (diff) | |
download | serd-63edb5d1665e7b7a9a4750c063d27a8ae7d75a77.tar.gz serd-63edb5d1665e7b7a9a4750c063d27a8ae7d75a77.tar.bz2 serd-63edb5d1665e7b7a9a4750c063d27a8ae7d75a77.zip |
Make statement sink take a statement rather than nodes
This makes the interface more extensible, towards associating more information
with statements. The serd_sink_write_nodes wrapper remains so that user code
does not need to allocate in order to write statement.
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/serd/serd.h b/serd/serd.h index e25d3b37..ef8153ff 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -767,12 +767,9 @@ typedef SerdStatus (*SerdPrefixSink)(void* handle, Called for every RDF statement in the serialisation. */ -typedef SerdStatus (*SerdStatementSink)(void* handle, - SerdStatementFlags flags, - const SerdNode* graph, - const SerdNode* subject, - const SerdNode* predicate, - const SerdNode* object); +typedef SerdStatus (*SerdStatementSink)(void* handle, + SerdStatementFlags flags, + const SerdStatement* statement); /** Sink (callback) for anonymous node end markers. |