summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2025-08-01 13:04:56 +0200
committerAndreas Fankhauser hiddenalpha.ch2025-08-01 13:04:56 +0200
commita189aac2378fa752c232a6f2ca60eedb66fe4355 (patch)
treefc6b763607a7e4b13c74790768141be02851f5c4
parent3fe42741e40c20a96dcab07a42871af568f39908 (diff)
downloadQntan-a189aac2378fa752c232a6f2ca60eedb66fe4355.tar.gz
Qntan-a189aac2378fa752c232a6f2ca60eedb66fe4355.zip
small fixes
-rw-r--r--include/qntan/Qntan.h3
1 files changed, 2 insertions, 1 deletions
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