summaryrefslogtreecommitdiffstats
path: root/include/zix/filesystem.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-22 20:12:44 -0400
committerDavid Robillard <d@drobilla.net>2024-06-22 20:17:07 -0400
commitaab5940036858663eb445c00166511ce2aea9c9d (patch)
treeed96f0b6ccbb1bddb7f6919c28fa2d4479cd4cda /include/zix/filesystem.h
parent503e58d36cd467ce83a7312f55bb8beb4e5e370b (diff)
downloadzix-aab5940036858663eb445c00166511ce2aea9c9d.tar.gz
zix-aab5940036858663eb445c00166511ce2aea9c9d.tar.bz2
zix-aab5940036858663eb445c00166511ce2aea9c9d.zip
Consistently use ZIX_MALLOC_API and ZIX_MALLOC_FUNC
Diffstat (limited to 'include/zix/filesystem.h')
-rw-r--r--include/zix/filesystem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/zix/filesystem.h b/include/zix/filesystem.h
index 9abafe1..34f7bcb 100644
--- a/include/zix/filesystem.h
+++ b/include/zix/filesystem.h
@@ -146,7 +146,7 @@ zix_create_directory_symlink(const char* ZIX_NONNULL target_path,
@return The path of the created directory, or null.
*/
-ZIX_API
+ZIX_MALLOC_API
char* ZIX_NULLABLE
zix_create_temporary_directory(ZixAllocator* ZIX_NULLABLE allocator,
const char* ZIX_NONNULL path_pattern);
@@ -227,7 +227,7 @@ zix_file_equals(ZixAllocator* ZIX_NULLABLE allocator,
@return A new canonical version of `path`, or null if it doesn't exist.
*/
-ZIX_API
+ZIX_MALLOC_API
char* ZIX_NULLABLE
zix_canonical_path(ZixAllocator* ZIX_NULLABLE allocator,
const char* ZIX_NULLABLE path);
@@ -346,7 +346,7 @@ zix_file_size(const char* ZIX_NONNULL path);
@param allocator Allocator used for the returned path.
*/
-ZIX_API
+ZIX_MALLOC_API
char* ZIX_ALLOCATED
zix_current_path(ZixAllocator* ZIX_NULLABLE allocator);
@@ -357,7 +357,7 @@ zix_current_path(ZixAllocator* ZIX_NULLABLE allocator);
@return A new path to a temporary directory, or null on error.
*/
-ZIX_API
+ZIX_MALLOC_API
char* ZIX_ALLOCATED
zix_temp_directory_path(ZixAllocator* ZIX_NULLABLE allocator);