summaryrefslogtreecommitdiffstats
path: root/include/afb/afb-request-itf.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-22 15:59:48 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:33 +0200
commitf30be1ca9ce04cfab55b9e6ce25cec6952f7e21d (patch)
tree88a0d681faa3604202cfbda4a94584b950ec4a74 /include/afb/afb-request-itf.h
parent9a304ebddac4deb4992ea931ea1131b639798b3b (diff)
Add a closure argument to dynamic verbs
Also demonstrate the mix of api v2 with dynapi. Change-Id: I95e8d32ac836590ce3f7b3f0b5f29e5574808976 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-request-itf.h')
-rw-r--r--include/afb/afb-request-itf.h4
1 files changed, 4 insertions, 0 deletions
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;
};
/*