aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/attributes.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-11 20:47:51 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit6eb1fa15a06ab7de08e33add1540a45b83c5f0d8 (patch)
tree86d3cfedbf2ff76878eba6d14dc7fc259d1cbf46 /include/serd/attributes.h
parentd1ba721d37af61f2b529faaa16bd20ba1e161b06 (diff)
downloadserd-6eb1fa15a06ab7de08e33add1540a45b83c5f0d8.tar.gz
serd-6eb1fa15a06ab7de08e33add1540a45b83c5f0d8.tar.bz2
serd-6eb1fa15a06ab7de08e33add1540a45b83c5f0d8.zip
Add SerdWorld for shared library state
Diffstat (limited to 'include/serd/attributes.h')
-rw-r--r--include/serd/attributes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/serd/attributes.h b/include/serd/attributes.h
index 4e0d68e2..59063153 100644
--- a/include/serd/attributes.h
+++ b/include/serd/attributes.h
@@ -76,6 +76,9 @@
/// A const function in the public API that is pure and only reads parameters
#define SERD_CONST_API SERD_API SERD_CONST_FUNC
+/// A malloc function in the public API that returns allocated memory
+#define SERD_MALLOC_API SERD_API SERD_MALLOC_FUNC
+
/**
@}
*/