From 4e15ec57f90d8d0d44b821a4dce7ae3c65f2ec52 Mon Sep 17 00:00:00 2001 From: hiddenalpha.ch Date: Sun, 4 Oct 2026 15:02:19 +0200 Subject: Add call macro for `isMyThread()`. add `File_unref()`. --- include/qntan/Qntan.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index b5c8ffe..f06a099 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -125,6 +125,9 @@ struct Qntan_CamtDec; #ifndef Qntan_EvLoop_enque # define Qntan_EvLoop_enque(A, B, C) (*A)->enque(A, B, C) #endif +#ifndef Qntan_EvLoop_isMyThread +# define Qntan_EvLoop_isMyThread(A) (*A)->isMyThread(A) +#endif #ifndef Qntan_EvLoop_awaitTokenAdd # define Qntan_EvLoop_awaitTokenAdd(A) (*A)->addAwaitToken(A) #endif @@ -821,7 +824,7 @@ TODO void(*onDone)(int, Qntan_Cls), Qntan_Cls ); TODO /**/ #endif void (*open)( struct Qntan_FileSystem**, char const*path, char const*mode, - void(*onDone)(int,struct Qntan_File**,Qntan_Cls), Qntan_Cls); + void(*onDone)(int,struct Qntan_File**,void(*unref)(struct Qntan_File**),Qntan_Cls), Qntan_Cls); /**/ #if 0 TODO void (*create)( struct Qntan_FileSystem**, const char*path, mode_t mode, -- cgit v1.3.1