diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 19:47:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | bdd403e7745a2b53323721cc63c05c2b26e651c9 (patch) | |
tree | 00a57a30853ce7cb7d483d9e05d94c762a9fa0ba /serd | |
parent | 167811c7925cb4f37d454881d5dc15960395145a (diff) | |
download | serd-bdd403e7745a2b53323721cc63c05c2b26e651c9.tar.gz serd-bdd403e7745a2b53323721cc63c05c2b26e651c9.tar.bz2 serd-bdd403e7745a2b53323721cc63c05c2b26e651c9.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 4cf030f5..1ec7cdae 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -773,12 +773,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. |