aboutsummaryrefslogtreecommitdiffstats
path: root/src/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sink.c')
-rw-r--r--src/sink.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sink.c b/src/sink.c
index 0f6faf85..b7e93768 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -24,11 +24,13 @@
#include <stdlib.h>
SerdSink*
-serd_sink_new(void* handle)
+serd_sink_new(void* handle, SerdEnv* env)
{
SerdSink* sink = (SerdSink*)calloc(1, sizeof(SerdSink));
sink->handle = handle;
+ sink->env = env;
+
return sink;
}
@@ -38,6 +40,12 @@ serd_sink_free(SerdSink* sink)
free(sink);
}
+SerdEnv*
+serd_sink_get_env(SerdSink* sink)
+{
+ return sink->env;
+}
+
SerdStatus
serd_sink_set_base_func(SerdSink* sink, SerdBaseSink base_func)
{