X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-itf.h;h=6984d0fad8546d969bbdfcfe9454009cbaf4ad3a;hb=f3a1fb9e40f2d609d128b7a0b3eb3e963cdea0b5;hp=a3ff9fe0cb81ed464757228ca60090e6c4f0699c;hpb=457c879ff89bc7f1a8864304974999dba54af9ae;p=src%2Fapp-framework-binder.git 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)