aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_chunk_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-10 19:29:22 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit79bd5c789631ea51071564813046e34b304e1bc7 (patch)
tree8c58ef6692972eb41d0894a6267d3868217cd2a4 /tests/read_chunk_test.c
parentce6fbad56fb6970fe507186d6560ad4fac981d74 (diff)
downloadserd-79bd5c789631ea51071564813046e34b304e1bc7.tar.gz
serd-79bd5c789631ea51071564813046e34b304e1bc7.tar.bz2
serd-79bd5c789631ea51071564813046e34b304e1bc7.zip
Add SerdSink interface and hide individual function implementations
Diffstat (limited to 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index 6515df32..3cc32bd9 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -79,8 +79,9 @@ on_end(void* handle, const SerdNode* node)
int
main(void)
{
- SerdReader* reader = serd_reader_new(
- SERD_TURTLE, NULL, NULL, on_base, on_prefix, on_statement, on_end);
+ const SerdSink sink = {NULL, on_base, on_prefix, on_statement, on_end};
+
+ SerdReader* reader = serd_reader_new(SERD_TURTLE, &sink);
assert(reader);
assert(!serd_reader_start_string(reader,