From 10c706a040abeaf5c82db54086d4edb03a995cf3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 19:30:45 +0100 Subject: Add SerdWorld for shared library state --- src/system.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index df5827de..66546d6e 100644 --- a/src/system.h +++ b/src/system.h @@ -27,11 +27,13 @@ FILE* serd_fopen(const char* path, const char* mode); /// Allocate a buffer aligned to `alignment` bytes -SERD_MALLOC_FUNC void* +SERD_I_MALLOC_FUNC +void* serd_malloc_aligned(size_t alignment, size_t size); /// Allocate an aligned buffer for I/O -SERD_MALLOC_FUNC void* +SERD_I_MALLOC_FUNC +void* serd_allocate_buffer(size_t size); /// Free a buffer allocated with an aligned allocation function -- cgit v1.2.1