summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2025-12-12 14:03:37 +0100
committerAndreas Fankhauser hiddenalpha.ch2025-12-12 14:03:37 +0100
commita16e3b28d1e0e5c98bbfc0e7a97b930a439c9169 (patch)
tree5bb8838ed09a2821b3176b5032d82fed0b791b8c
parentd945987cdac264f10e4b3cb5b24e1e663fbe533f (diff)
downloadQntan-a16e3b28d1e0e5c98bbfc0e7a97b930a439c9169.tar.gz
Qntan-a16e3b28d1e0e5c98bbfc0e7a97b930a439c9169.zip
Add 'rename' to FileSystem API.
-rw-r--r--include/qntan/Qntan.h9
1 files changed, 6 insertions, 3 deletions
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);
// /**/