From 4cf33db925fbd8bea0defeb34e1ed6575349e644 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 1 Aug 2021 17:23:24 -0400 Subject: Make serd_writer_set_root_uri() take a string view This is generally more convenient, and the node was just being copied anyway. --- include/serd/writer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/serd/writer.h b/include/serd/writer.h index fabdcd61..3cd7e2f4 100644 --- a/include/serd/writer.h +++ b/include/serd/writer.h @@ -6,10 +6,10 @@ #include "serd/attributes.h" #include "serd/env.h" -#include "serd/node.h" #include "serd/sink.h" #include "serd/status.h" #include "serd/stream.h" +#include "serd/string_view.h" #include "serd/syntax.h" #include "serd/world.h" #include "zix/attributes.h" @@ -84,8 +84,7 @@ serd_writer_chop_blank_prefix(SerdWriter* ZIX_NONNULL writer, it defaults to the base URI, so no up-references will be created at all. */ SERD_API SerdStatus -serd_writer_set_root_uri(SerdWriter* ZIX_NONNULL writer, - const SerdNode* ZIX_NULLABLE uri); +serd_writer_set_root_uri(SerdWriter* ZIX_NONNULL writer, SerdStringView uri); /** Finish a write. -- cgit v1.2.1