diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 17:55:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 0f9816d67bc67a396607291f845ca2a33c2285a7 (patch) | |
tree | b31fd1b344305dc984a2109084fa183573a0ae43 /include/serd/world.h | |
parent | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff) | |
download | serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2 serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip |
Use ZixAllocator directly
Diffstat (limited to 'include/serd/world.h')
-rw-r--r-- | include/serd/world.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/serd/world.h b/include/serd/world.h index fb0930aa..a5dfe183 100644 --- a/include/serd/world.h +++ b/include/serd/world.h @@ -5,10 +5,10 @@ #define SERD_WORLD_H #include "serd/attributes.h" -#include "serd/memory.h" #include "serd/node.h" #include "serd/nodes.h" #include "serd/status.h" +#include "zix/allocator.h" #include "zix/attributes.h" #include <stddef.h> @@ -37,14 +37,14 @@ typedef struct { shared between worlds. */ SERD_MALLOC_API SerdWorld* ZIX_ALLOCATED -serd_world_new(SerdAllocator* ZIX_NULLABLE allocator); +serd_world_new(ZixAllocator* ZIX_NULLABLE allocator); /// Free `world` SERD_API void serd_world_free(SerdWorld* ZIX_NULLABLE world); /// Return the allocator used by `world` -SERD_PURE_API SerdAllocator* ZIX_NONNULL +SERD_PURE_API ZixAllocator* ZIX_NONNULL serd_world_allocator(const SerdWorld* ZIX_NONNULL world); /** |