X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req.h;h=6f98e900c31c9d96653ed1c058236af050a864cc;hb=be63003e3f1841b43614f0e11b0a291e11f1dad1;hp=71dd31d1d4bf08bd7bf3fc043dd9c477b4fcc6e0;hpb=59d4e6a0654d361de19fbbfa65daf6c1dabd55a0;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req.h b/include/afb/afb-req.h index 71dd31d1..6f98e900 100644 --- a/include/afb/afb-req.h +++ b/include/afb/afb-req.h @@ -30,6 +30,14 @@ struct afb_req struct afb_request *closure; /* the closure argument for functions of 'itf' */ }; +/* + * Converts the 'req' to an afb_request. + */ +static inline struct afb_request *afb_req_to_request(struct afb_req req) +{ + return req.closure; +} + /* * Checks whether the request 'req' is valid or not. *