aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_chunk_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-14 19:18:17 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit0e8a72aae08b64beb11d97f020c14126178d7545 (patch)
tree0cf783d174f2ddd95453c34aba3ef46fc3a5b9d7 /tests/read_chunk_test.c
parent3ff6565bdf0861f9db3527b58919ca7481deca6c (diff)
downloadserd-0e8a72aae08b64beb11d97f020c14126178d7545.tar.gz
serd-0e8a72aae08b64beb11d97f020c14126178d7545.tar.bz2
serd-0e8a72aae08b64beb11d97f020c14126178d7545.zip
Add function to SerdSink for freeing opaque handle
This can be used to associate dynamically allocated data with a sink and have it managed along with the sink's lifetime.
Diffstat (limited to 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index 8ff3e03e..56c6abdc 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -74,7 +74,7 @@ int
main(void)
{
SerdWorld* world = serd_world_new();
- SerdSink* sink = serd_sink_new(NULL);
+ SerdSink* sink = serd_sink_new(NULL, NULL);
serd_sink_set_base_func(sink, on_base);
serd_sink_set_prefix_func(sink, on_prefix);
serd_sink_set_statement_func(sink, on_statement);