From 0f9816d67bc67a396607291f845ca2a33c2285a7 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Mon, 19 Dec 2022 17:55:02 -0500
Subject: Use ZixAllocator directly

---
 include/serd/uri.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'include/serd/uri.h')

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);
 
-- 
cgit v1.2.1