From 7ffa2c0488fcd96c3c12713e5650633eb03e91f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Mar 2023 05:39:26 -0400 Subject: [WIP] Move SerdEnv mutation from writer to reader Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader. --- include/serd/reader.h | 2 ++ include/serd/writer.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/serd') diff --git a/include/serd/reader.h b/include/serd/reader.h index 040f3398..658193fb 100644 --- a/include/serd/reader.h +++ b/include/serd/reader.h @@ -5,6 +5,7 @@ #define SERD_READER_H #include "serd/attributes.h" +#include "serd/env.h" #include "serd/input_stream.h" #include "serd/node.h" #include "serd/sink.h" @@ -41,6 +42,7 @@ SERD_API SerdReader* ZIX_ALLOCATED serd_reader_new(SerdWorld* ZIX_NONNULL world, SerdSyntax syntax, SerdReaderFlags flags, + SerdEnv* ZIX_NONNULL env, const SerdSink* ZIX_NONNULL sink); /** diff --git a/include/serd/writer.h b/include/serd/writer.h index 41ffb8cd..b85c7b82 100644 --- a/include/serd/writer.h +++ b/include/serd/writer.h @@ -51,7 +51,7 @@ SERD_API SerdWriter* ZIX_ALLOCATED serd_writer_new(SerdWorld* ZIX_NONNULL world, SerdSyntax syntax, SerdWriterFlags flags, - SerdEnv* ZIX_NONNULL env, + const SerdEnv* ZIX_NONNULL env, SerdOutputStream* ZIX_NONNULL output, size_t block_size); -- cgit v1.2.1