diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 19:47:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:47 +0100 |
commit | 957fbbae9d51e3850f00ed109052ce7bab7087e0 (patch) | |
tree | 1c34e3bad481e08f40e800b1cc20aaaa809aad97 /serd | |
parent | cd63c3d8d0627b5cb6c060db5f5132c0dbcc9a79 (diff) | |
download | serd-957fbbae9d51e3850f00ed109052ce7bab7087e0.tar.gz serd-957fbbae9d51e3850f00ed109052ce7bab7087e0.tar.bz2 serd-957fbbae9d51e3850f00ed109052ce7bab7087e0.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 1db1d1b1..4ad187b0 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -768,12 +768,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. |