diff options
Diffstat (limited to 'include/serd/world.h')
-rw-r--r-- | include/serd/world.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/serd/world.h b/include/serd/world.h index 9440e6eb..dc2b3b83 100644 --- a/include/serd/world.h +++ b/include/serd/world.h @@ -5,6 +5,7 @@ #define SERD_WORLD_H #include "serd/attributes.h" +#include "serd/memory.h" #include "serd/node.h" #include "serd/status.h" #include "zix/attributes.h" @@ -35,12 +36,16 @@ typedef struct { shared between worlds. */ SERD_MALLOC_API SerdWorld* ZIX_ALLOCATED -serd_world_new(void); +serd_world_new(SerdAllocator* 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_world_allocator(const SerdWorld* ZIX_NONNULL world); + /** Return the current resource limits. |