Add verbs for closing and setting LOA
[src/app-framework-binder.git] / include / afb / afb-req-itf.h
index a3ff9fe..6984d0f 100644 (file)
@@ -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 <stdlib.h>
 
 static inline struct afb_req *afb_req_store(struct afb_req req)