X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v2.h;h=9657796e9faca538b01248e4a6fbfc5877af174f;hp=9ed203dc678736e6dfdb0631c78ebf96a8ce1ac8;hb=65353dce81a629e042800bb7b86fcd869a76727e;hpb=e0fa1cdd56ffb97fedc3ba8df482a14323d876c7 diff --git a/include/afb/afb-req-v2.h b/include/afb/afb-req-v2.h index 9ed203dc..9657796e 100644 --- a/include/afb/afb-req-v2.h +++ b/include/afb/afb-req-v2.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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); } + +/** @} */