From 897590f6408b9b2b1aae2a060465da6d0faf42be Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jun 2018 19:47:07 +0200 Subject: 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. --- serd/serd.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index 0429cefb..382506f7 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -777,12 +777,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. -- cgit v1.2.1