aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/uri.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-08-30 20:43:05 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (patch)
treed7be35c7b4b3d466049352f2975e2c88c298f4b8 /include/serd/uri.h
parentb13ad41a4d65b577b4db67660a9edf3056bdf7af (diff)
downloadserd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip
Use ZixStringView directly
Diffstat (limited to 'include/serd/uri.h')
-rw-r--r--include/serd/uri.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/serd/uri.h b/include/serd/uri.h
index c978782f..efdf68aa 100644
--- a/include/serd/uri.h
+++ b/include/serd/uri.h
@@ -7,8 +7,8 @@
#include "serd/attributes.h"
#include "serd/memory.h"
#include "serd/stream.h"
-#include "serd/string_view.h"
#include "zix/attributes.h"
+#include "zix/string_view.h"
#include <stdbool.h>
#include <stddef.h>
@@ -40,12 +40,12 @@ SERD_BEGIN_DECLS
number of up-references ("../") that must be prepended to the path.
*/
typedef struct {
- SerdStringView scheme; ///< Scheme
- SerdStringView authority; ///< Authority
- SerdStringView path_prefix; ///< Path prefix for relative/resolved paths
- SerdStringView path; ///< Path suffix
- SerdStringView query; ///< Query
- SerdStringView fragment; ///< Fragment
+ ZixStringView scheme; ///< Scheme
+ ZixStringView authority; ///< Authority
+ ZixStringView path_prefix; ///< Path prefix for relative/resolved paths
+ ZixStringView path; ///< Path suffix
+ ZixStringView query; ///< Query
+ ZixStringView fragment; ///< Fragment
} SerdURIView;
static const SerdURIView SERD_URI_NULL =
@@ -173,8 +173,8 @@ serd_write_uri(SerdURIView uri,
terminator, which is not written)
*/
SERD_API size_t
-serd_write_file_uri(SerdStringView path,
- SerdStringView hostname,
+serd_write_file_uri(ZixStringView path,
+ ZixStringView hostname,
SerdWriteFunc ZIX_NONNULL sink,
void* ZIX_NONNULL stream);