From a16e3b28d1e0e5c98bbfc0e7a97b930a439c9169 Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Fri, 12 Dec 2025 14:03:37 +0100 Subject: Add 'rename' to FileSystem API. --- include/qntan/Qntan.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index 0b8a4c9..71c6a37 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -446,6 +446,9 @@ struct Qntan_File { +#ifndef Qntan_Executor_enque +# define Qntan_Executor_enque(A, ...) (*A)->enque(A, __VA_ARGS__) +#endif struct Qntan_FileSystem { /* VFS (VirtualFileSystem) @@ -476,9 +479,9 @@ struct Qntan_FileSystem { // void(*onDone)(int, Qntan_Cls), Qntan_Cls); // /* TODO There's a duplicate in 'File' of this function. // */ -// void (*rename)( struct Qntan_FileSystem**, char const*from, char const*to, -// void(*onDone)(int, Qntan_Cls), Qntan_Cls); -// /**/ + void (*rename)( struct Qntan_FileSystem**, char const*src, char const*dst, + void(*onDone)(int, Qntan_Cls), Qntan_Cls); + /**/ // void (*chmod)( struct Qntan_FileSystem**, char const*path, mode_t, // void(*onDone)(int, Qntan_Cls), Qntan_Cls); // /**/ -- cgit v1.3.1