summaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-22 07:54:10 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-22 07:54:10 +0200
commitf3a1fb9e40f2d609d128b7a0b3eb3e963cdea0b5 (patch)
tree03453a25f4592da1e1c49ded7bb11c515a4d0845 /src/afb-hreq.c
parent457c879ff89bc7f1a8864304974999dba54af9ae (diff)
Add verbs for closing and setting LOA
These new verbs are now available to plugins. LOA is the level-of-authorisation. The usage of these new verbs must be protected by a mechanism that is still to be done. Change-Id: Ia591fb6bf9cd16956dc95658c5ba3a24ee4380be Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.c')
-rw-r--r--src/afb-hreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index b1f300db..6cd1e225 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -82,7 +82,9 @@ static const struct afb_req_itf afb_hreq_itf = {
.context_get = (void*)afb_context_get,
.context_set = (void*)afb_context_set,
.addref = (void*)afb_hreq_addref,
- .unref = (void*)afb_hreq_unref
+ .unref = (void*)afb_hreq_unref,
+ .session_close = (void*)afb_context_close,
+ .session_set_LOA = (void*)afb_context_change_loa
};
static struct hreq_data *get_data(struct afb_hreq *hreq, const char *key, int create)