diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 20:26:13 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 3d79b6ee36b250644e6cf70eee8e3076d94cbb7f (patch) | |
tree | 0f734bfcfd278d6eef5ca0e82c008b7f2a6f7bba /include/serd/uri.h | |
parent | 7fb4c5264b91d5a5ce9f13a9fb4308088b31fcd4 (diff) | |
download | serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.gz serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.bz2 serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.zip |
Use Zix attributes directly
Diffstat (limited to 'include/serd/uri.h')
-rw-r--r-- | include/serd/uri.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/serd/uri.h b/include/serd/uri.h index 3170fa89..bee9fe78 100644 --- a/include/serd/uri.h +++ b/include/serd/uri.h @@ -7,6 +7,9 @@ #include "serd/attributes.h" #include "serd/stream.h" #include "serd/string_view.h" +#include "zix/allocator.h" +#include "zix/attributes.h" +#include "zix/string_view.h" #include <stdbool.h> #include <stddef.h> @@ -58,17 +61,17 @@ static const SerdURIView SERD_URI_NULL = @param hostname If non-NULL, set to the hostname, if present. @return A newly-allocated filesystem path. */ -SERD_API char* SERD_ALLOCATED -serd_parse_file_uri(const char* SERD_NONNULL uri, - char* SERD_NONNULL* SERD_NULLABLE hostname); +SERD_API char* ZIX_ALLOCATED +serd_parse_file_uri(const char* ZIX_NONNULL uri, + char* ZIX_NONNULL* ZIX_NULLABLE hostname); /// Return true iff `string` starts with a valid URI scheme SERD_PURE_API bool -serd_uri_string_has_scheme(const char* SERD_NONNULL string); +serd_uri_string_has_scheme(const char* ZIX_NONNULL string); /// Parse `string` and return a URI view that points into it SERD_PURE_API SerdURIView -serd_parse_uri(const char* SERD_NONNULL string); +serd_parse_uri(const char* ZIX_NONNULL string); /** Return reference `r` resolved against `base`. @@ -146,9 +149,9 @@ serd_uri_string_length(SerdURIView uri); `serd_uri_string_length(uri)` on error. */ SERD_API size_t -serd_write_uri(SerdURIView uri, - SerdWriteFunc SERD_NONNULL sink, - void* SERD_NONNULL stream); +serd_write_uri(SerdURIView uri, + SerdWriteFunc ZIX_NONNULL sink, + void* ZIX_NONNULL stream); /** @} |