diff options
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/filter.c b/src/filter.c index e5e8fa29..8efe1e91 100644 --- a/src/filter.c +++ b/src/filter.c @@ -70,13 +70,15 @@ serd_filter_on_event(void* const handle, const SerdEvent* const event) } SerdSink* -serd_filter_new(const SerdSink* const target, - const SerdNode* const subject, - const SerdNode* const predicate, - const SerdNode* const object, - const SerdNode* const graph, - const bool inclusive) +serd_filter_new(const SerdWorld* const world, + const SerdSink* const target, + const SerdNode* const subject, + const SerdNode* const predicate, + const SerdNode* const object, + const SerdNode* const graph, + const bool inclusive) { + assert(world); assert(target); SerdFilterData* const data = @@ -101,5 +103,5 @@ serd_filter_new(const SerdSink* const target, data->graph = serd_node_copy(graph); } - return serd_sink_new(data, serd_filter_on_event, free_data); + return serd_sink_new(world, data, serd_filter_on_event, free_data); } |