aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_chunk_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 19:47:07 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit897590f6408b9b2b1aae2a060465da6d0faf42be (patch)
tree488932c54be7e580b243780d78e126afc89bd8ec /tests/read_chunk_test.c
parent995766383b56addc1144d885dd8ca5abc8587afa (diff)
downloadserd-897590f6408b9b2b1aae2a060465da6d0faf42be.tar.gz
serd-897590f6408b9b2b1aae2a060465da6d0faf42be.tar.bz2
serd-897590f6408b9b2b1aae2a060465da6d0faf42be.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 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index 9fa40bab..7abd865f 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -48,19 +48,13 @@ on_prefix(void* handle, const SerdNode* name, const SerdNode* uri)
}
static SerdStatus
-on_statement(void* handle,
- SerdStatementFlags flags,
- const SerdNode* graph,
- const SerdNode* subject,
- const SerdNode* predicate,
- const SerdNode* object)
+on_statement(void* handle,
+ SerdStatementFlags flags,
+ const SerdStatement* statement)
{
(void)handle;
(void)flags;
- (void)graph;
- (void)subject;
- (void)predicate;
- (void)object;
+ (void)statement;
++n_statement;
return SERD_SUCCESS;