aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-dynapi.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-dynapi.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-dynapi.h')
-rw-r--r--include/afb/afb-dynapi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/afb/afb-dynapi.h b/include/afb/afb-dynapi.h
index 3d7c1469..edae4915 100644
--- a/include/afb/afb-dynapi.h
+++ b/include/afb/afb-dynapi.h
@@ -245,10 +245,11 @@ static inline int afb_dynapi_add_verb(
const char *verb,
const char *info,
void (*callback)(struct afb_request *request),
+ void *vcbdata,
const struct afb_auth *auth,
uint32_t session)
{
- return dynapi->itf->api_add_verb(dynapi, verb, info, callback, auth, session);
+ return dynapi->itf->api_add_verb(dynapi, verb, info, callback, vcbdata, auth, session);
}