diff options
author | David Robillard <d@drobilla.net> | 2021-08-01 17:23:24 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 4cf33db925fbd8bea0defeb34e1ed6575349e644 (patch) | |
tree | a1654612a7e3e7450399af8bc59b9c58b9aa6577 /include | |
parent | 551faf54e35c757144204bf7a7949c0f7d0a20a3 (diff) | |
download | serd-4cf33db925fbd8bea0defeb34e1ed6575349e644.tar.gz serd-4cf33db925fbd8bea0defeb34e1ed6575349e644.tar.bz2 serd-4cf33db925fbd8bea0defeb34e1ed6575349e644.zip |
Make serd_writer_set_root_uri() take a string view
This is generally more convenient, and the node was just being copied anyway.
Diffstat (limited to 'include')
-rw-r--r-- | include/serd/writer.h | 5 |
1 files changed, 2 insertions, 3 deletions
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. |