diff options
author | David Robillard <d@drobilla.net> | 2021-09-10 13:20:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | eb804125430e3445e85c423b28e1c41346772ed0 (patch) | |
tree | 532f6995ace537170fbbfde2d0d8226d1a48279b /src/inserter.c | |
parent | cbf01be4126cbc0f6d80364a7e0b6ad777a7d8ae (diff) | |
download | serd-eb804125430e3445e85c423b28e1c41346772ed0.tar.gz serd-eb804125430e3445e85c423b28e1c41346772ed0.tar.bz2 serd-eb804125430e3445e85c423b28e1c41346772ed0.zip |
Make environments and sinks part of the world
Although functions/components that require minimal pre-existing state are nice,
these allocate memory and could potentially share resources. So, give them a
pointer to a world which can be used to configure such things. In particular,
this is working towards supporting custom allocators everywhere.
Diffstat (limited to 'src/inserter.c')
-rw-r--r-- | src/inserter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inserter.c b/src/inserter.c index 96caf216..9f388921 100644 --- a/src/inserter.c +++ b/src/inserter.c @@ -118,8 +118,8 @@ serd_inserter_new(SerdModel* const model, const SerdNode* const default_graph) data->model = model; data->default_graph = serd_node_copy(default_graph); - SerdSink* const sink = - serd_sink_new(data, (SerdEventFunc)serd_inserter_on_event, free); + SerdSink* const sink = serd_sink_new( + model->world, data, (SerdEventFunc)serd_inserter_on_event, free); return sink; } |