X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v2.h;h=75ef841da59925fec346af633fc7e6bb8887f069;hb=72385abda940862a920442a330fb6aa82673400f;hp=34cbbdaaf09ad22ed6402b50727815eae021eb11;hpb=24d000c2290126abf88204089d132229d63f9a05;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req-v2.h b/include/afb/afb-req-v2.h index 34cbbdaa..75ef841d 100644 --- a/include/afb/afb-req-v2.h +++ b/include/afb/afb-req-v2.h @@ -17,16 +17,23 @@ #pragma once -#include "afb-req.h" +#include "afb-req-x1.h" -/* +/** @addtogroup AFB_REQ + * @{ */ + +/** + * @deprecated use bindings version 3 + * * Stores 'req' on heap for asynchrnous use. * Returns a handler to the stored 'req' or NULL on memory depletion. * The count of reference to 'req' is incremented on success * (see afb_req_addref). */ -static inline struct afb_stored_req *afb_req_store_v2(struct afb_req req) +static inline struct afb_stored_req *afb_req_x1_store_v2(struct afb_req_x1 req) { - return req.itf->store(req.closure); + return req.itf->legacy_store_req(req.closure); } + +/** @} */