diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 19:47:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:47 -0500 |
commit | 6413746068d35e8e88111f930cbaadc56e2cf0cf (patch) | |
tree | ac2fdc094ed1e0409a5b2fdcdda3ec4034a3ab14 /serd | |
parent | 39fabf4d292f674f4d669b98e446e66d8ef11aa0 (diff) | |
download | serd-6413746068d35e8e88111f930cbaadc56e2cf0cf.tar.gz serd-6413746068d35e8e88111f930cbaadc56e2cf0cf.tar.bz2 serd-6413746068d35e8e88111f930cbaadc56e2cf0cf.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 009540b2..33196da1 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. |