From a189aac2378fa752c232a6f2ca60eedb66fe4355 Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Fri, 1 Aug 2025 13:04:56 +0200 Subject: small fixes --- include/qntan/Qntan.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/qntan') diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index 817370c..0e2a8e9 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -27,6 +27,7 @@ extern "C" { /* * "Cls" aka "Closure". The userdata type to pass around for callbacks etc. */ #define Qntan_Cls uintptr_t +#define QNTAN_CLS(OBJ) ((Qntan_Cls)OBJ) @@ -247,7 +248,7 @@ struct Qntan_IoMux { * @param arg * User defined pointer to pass a context to 'onDone'. */ void (*write)( - struct Qntan_IoMux**, void*buf, int sz, int cnt, + struct Qntan_IoMux**, void const*buf, int sz, int cnt, uintptr_t ptrToFILE, void(*onDone)(int ret,Qntan_Cls), Qntan_Cls ); /* * Basic idea is from -- cgit v1.3.1