diff options
author | David Robillard <d@drobilla.net> | 2018-12-29 17:36:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:49 -0500 |
commit | 904d3d9b0bcdbb1507adccdde831db0d5f7ae251 (patch) | |
tree | be485f9684819534972a40ced925138f5e4d850c /tests/serd_test.c | |
parent | beb2eba61195d6ef838cd3bfd363ae74785aaff9 (diff) | |
download | serd-904d3d9b0bcdbb1507adccdde831db0d5f7ae251.tar.gz serd-904d3d9b0bcdbb1507adccdde831db0d5f7ae251.tar.bz2 serd-904d3d9b0bcdbb1507adccdde831db0d5f7ae251.zip |
Add Env to Sink
This isn't technically necessary for any sink, but is a pattern common to every
sink implementation in serd, so having it here reduces boilerplate and
parameters in user code.
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 640d81dc..86911b0c 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -451,7 +451,7 @@ main(void) assert(serd_env_set_prefix(env, b, lit)); size_t n_prefixes = 0; - SerdSink* count_prefixes_sink = serd_sink_new(&n_prefixes); + SerdSink* count_prefixes_sink = serd_sink_new(&n_prefixes, NULL); serd_sink_set_prefix_func(count_prefixes_sink, count_prefixes); serd_env_set_prefix(env, pre, eg); serd_env_send_prefixes(env, count_prefixes_sink); @@ -600,7 +600,7 @@ main(void) fseek(fd, 0, SEEK_SET); size_t n_statements = 0; - SerdSink* sink = serd_sink_new(&n_statements); + SerdSink* sink = serd_sink_new(&n_statements, NULL); serd_sink_set_statement_func(sink, count_statements); SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, 4096); |