From d72076207a2fad96ff014a81366868fb47a0ed1b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 31 Aug 2017 17:59:01 -0700 Subject: Allocate AIOs dynamically. We allocate AIO structures dynamically, so that we can use them abstractly in more places without inlining them. This will be used for the ZeroTier transport to allow us to create operations consisting of just the AIO. Furthermore, we provide accessors for some of the aio members, in the hopes that we will be able to wrap these for "safe" version of the AIO capability to export to applications, and to protocol and transport implementors. While here we cleaned up the protocol details to use consistently shorter names (no nni_ prefix for static symbols needed), and we also fixed a bug in the surveyor code. --- src/core/event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/event.h') diff --git a/src/core/event.h b/src/core/event.h index 22af096e..9536d206 100644 --- a/src/core/event.h +++ b/src/core/event.h @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore +// Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -25,7 +26,7 @@ struct nng_notify { void * n_arg; int n_type; nni_sock * n_sock; - nni_aio n_aio; + nni_aio * n_aio; }; extern void nni_ev_init(nni_event *, int, nni_sock *); -- cgit v1.2.3-70-g09d2