From fb6550a242bb1742ec62202a99d0604ee9069795 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 4 Mar 2017 02:46:40 -0800 Subject: Pipeline protocol now entirely callback driven. --- src/core/aio.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/core/aio.h') diff --git a/src/core/aio.h b/src/core/aio.h index f6096ca7..80a3ac02 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -37,12 +37,9 @@ struct nni_aio { nni_iov a_iov[4]; int a_niov; - // Sendmsg operation. + // Message operations. nni_msg * a_msg; - // Recvmsg operation. - nni_msg ** a_msgp; - // TBD: Resolver operations. // Provider-use fields. @@ -54,7 +51,7 @@ struct nni_aio { // the supplied argument when the operation is complete. If NULL is // supplied for the callback, then nni_aio_wake is used in its place, // and the aio is used for the argument. -extern void nni_aio_init(nni_aio *, nni_cb, void *); +extern int nni_aio_init(nni_aio *, nni_cb, void *); // nni_aio_fini finalizes the aio, releasing resources (locks) // associated with it. The caller is responsible for ensuring that any -- cgit v1.2.3-70-g09d2