aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 19:47:07 +0200
committerDavid Robillard <d@drobilla.net>2019-12-19 20:55:19 -0500
commit0e83ea9bcdc9fd08eda66ddc64fd0464be61e2d0 (patch)
tree135ec30aec0d5ebdb506b9670d8b0c5b62e0d90b /serd
parent0476f6737a568f8902f9a1317d6683c1d3f1f03d (diff)
downloadserd-0e83ea9bcdc9fd08eda66ddc64fd0464be61e2d0.tar.gz
serd-0e83ea9bcdc9fd08eda66ddc64fd0464be61e2d0.tar.bz2
serd-0e83ea9bcdc9fd08eda66ddc64fd0464be61e2d0.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.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/serd/serd.h b/serd/serd.h
index c76626de..281a812f 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -779,12 +779,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.