diff options
Diffstat (limited to 'include/qntan')
| -rw-r--r-- | include/qntan/Qntan.h | 12 |
1 files 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". |
