From 0e83ea9bcdc9fd08eda66ddc64fd0464be61e2d0 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/serd.h') 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. -- cgit v1.2.1