From bdd403e7745a2b53323721cc63c05c2b26e651c9 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 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. -- cgit v1.2.1