From f3a1fb9e40f2d609d128b7a0b3eb3e963cdea0b5 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Sun, 22 May 2016 07:54:10 +0200 Subject: Add verbs for closing and setting LOA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/afb/afb-req-itf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/afb/afb-req-itf.h') diff --git a/include/afb/afb-req-itf.h b/include/afb/afb-req-itf.h index a3ff9fe0..6984d0fa 100644 --- a/include/afb/afb-req-itf.h +++ b/include/afb/afb-req-itf.h @@ -40,6 +40,9 @@ struct afb_req_itf { void (*addref)(void *closure); void (*unref)(void *closure); + + void (*session_close)(void *closure); + void (*session_set_LOA)(void *closure, unsigned level); }; struct afb_req { @@ -123,6 +126,16 @@ static inline void afb_req_unref(struct afb_req req) return req.itf->unref(req.closure); } +static inline void afb_req_session_close(struct afb_req req) +{ + return req.itf->session_close(req.closure); +} + +static inline void afb_req_session_set_LOA(struct afb_req req, unsigned level) +{ + return req.itf->session_set_LOA(req.closure, level); +} + #include static inline struct afb_req *afb_req_store(struct afb_req req) -- cgit 1.2.3-korg