From a03520525ad4839861fc9fac2f07904937e77067 Mon Sep 17 00:00:00 2001 From: hiddenalpha.ch Date: Wed, 23 Sep 2026 22:37:36 +0200 Subject: reFormat to help YCM. --- include/qntan/Qntan.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index f89f008..1fc5cab 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -428,8 +428,8 @@ struct Qntan_IoMux { * file/socket types in use. High-level modules SHOULD NOT use this type * directly. */ - void (*read)( - struct Qntan_IoMux**, void*buf, int sz, int cnt, uintptr_t ptrToFILE, + void (*read)( struct Qntan_IoMux**, + void*buf, int sz, int cnt, uintptr_t ptrToFILE, void(*onDone)(int ret,Qntan_Cls), Qntan_Cls ); /* Basic idea is from * "https://pubs.opengroup.org/onlinepubs/009695399/functions/fread.html". @@ -515,8 +515,8 @@ struct Qntan_IoMux { * @param arg * User defined pointer to pass a context to 'onDone'. */ - void (*accept)( - struct Qntan_IoMux**, uintptr_t sockFd, int flgs, + void (*accept)( struct Qntan_IoMux**, + uintptr_t sockFd, int flgs, void(*onDone)(int ret, uintptr_t newClientFd, void*sockaddr, int sockaddr_len, Qntan_Cls), Qntan_Cls ); /* Basic idea is from @@ -709,8 +709,8 @@ struct Qntan_File { * Negative numbers indicate errors. Positive values indicate * number of objects that where read. */ - void (*read)( - struct Qntan_File**, void*buf, int sz, int cnt, + void (*read)( struct Qntan_File**, + void*buf, int sz, int cnt, void(*onDone)(int ret,Qntan_Cls), Qntan_Cls ); /* Basic idea is from * "https://pubs.opengroup.org/onlinepubs/009695399/functions/recv.html". -- cgit v1.3.1