diff options
Diffstat (limited to 'include/serd/uri.h')
-rw-r--r-- | include/serd/uri.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/serd/uri.h b/include/serd/uri.h index efdf68aa..ef00351c 100644 --- a/include/serd/uri.h +++ b/include/serd/uri.h @@ -5,8 +5,8 @@ #define SERD_URI_H #include "serd/attributes.h" -#include "serd/memory.h" #include "serd/stream.h" +#include "zix/allocator.h" #include "zix/attributes.h" #include "zix/string_view.h" @@ -54,16 +54,17 @@ static const SerdURIView SERD_URI_NULL = /** Get the unescaped path and hostname from a file URI. - The returned path and `*hostname` must be freed with serd_free(). + Both the returned path and `*hostname` must be freed with zix_free() using + the same allocator. @param allocator Allocator for the returned string. @param uri A file URI. - @param hostname If non-NULL, set to the hostname, if present. + @param hostname If non-NULL, set to the newly allocated hostname, if present. - @return A newly allocated path string that must be freed with serd_free(). + @return A newly allocated path string. */ SERD_API char* ZIX_ALLOCATED -serd_parse_file_uri(SerdAllocator* ZIX_NULLABLE allocator, +serd_parse_file_uri(ZixAllocator* ZIX_NULLABLE allocator, const char* ZIX_NONNULL uri, char* ZIX_NONNULL* ZIX_NULLABLE hostname); |