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>2018-05-27 18:21:57 +0200
commit9bc71471086b9f5d5789d76fb28a45c47a058cf8 (patch)
tree23e3a630acc35797d3dcf4a9f1acabae35b18756 /tests/read_chunk_test.c
parentfe86b69752e84f25ca211e97122601ae66e3b044 (diff)
downloadserd-9bc71471086b9f5d5789d76fb28a45c47a058cf8.tar.gz
serd-9bc71471086b9f5d5789d76fb28a45c47a058cf8.tar.bz2
serd-9bc71471086b9f5d5789d76fb28a45c47a058cf8.zip
Add SerdSinkInterface and hide implementations
Diffstat (limited to 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index aadbe2c8..ed648e5f 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -59,13 +59,8 @@ on_end(void* handle, const SerdNode* node)
int
main(int argc, char** argv)
{
- SerdReader* reader = serd_reader_new(SERD_TURTLE,
- NULL,
- NULL,
- on_base,
- on_prefix,
- on_statement,
- on_end);
+ SerdSinkInterface sink = { 0, on_base, on_prefix, on_statement, on_end };
+ SerdReader* reader = serd_reader_new(SERD_TURTLE, &sink);
if (!reader) {
FAIL("Failed to create reader\n");
}