From f30be1ca9ce04cfab55b9e6ce25cec6952f7e21d Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 22 Sep 2017 15:59:48 +0200 Subject: Add a closure argument to dynamic verbs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also demonstrate the mix of api v2 with dynapi. Change-Id: I95e8d32ac836590ce3f7b3f0b5f29e5574808976 Signed-off-by: José Bollo --- include/afb/afb-request-itf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/afb/afb-request-itf.h') diff --git a/include/afb/afb-request-itf.h b/include/afb/afb-request-itf.h index b9e4366a..eb7c5347 100644 --- a/include/afb/afb-request-itf.h +++ b/include/afb/afb-request-itf.h @@ -53,6 +53,10 @@ struct afb_request /* current dynapi if dynapi (is NULL for bindings v1 and v2) */ struct afb_dynapi *dynapi; + + /* closure associated with the callback processing the verb of the request + * as given at its declaration */ + void *vcbdata; }; /* -- cgit 1.2.3-korg