aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-11 20:47:51 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:46 -0500
commit71c950bb749c3581ab389edfff9771cb06242e29 (patch)
treea1437913131978133e48b21078d900859ce30c43 /src/system.h
parent30f3e6fc2c1e24c429d5d0b7100dc449ade6703f (diff)
downloadserd-71c950bb749c3581ab389edfff9771cb06242e29.tar.gz
serd-71c950bb749c3581ab389edfff9771cb06242e29.tar.bz2
serd-71c950bb749c3581ab389edfff9771cb06242e29.zip
Add SerdWorld for shared library state
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h
index 7dae6a96..944c8942 100644
--- a/src/system.h
+++ b/src/system.h
@@ -27,16 +27,18 @@ 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 a zeroed buffer aligned to `alignment` bytes
-SERD_MALLOC_FUNC
+SERD_I_MALLOC_FUNC
void*
serd_calloc_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