diff options
Diffstat (limited to 'src/sink.c')
-rw-r--r-- | src/sink.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) { |