X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v2.h;h=78d640aa9d8be48bedb7bde04d2f278a86a2921e;hb=043c27c3a8fd323d59e41288b6fd24f0e9bfa9a3;hp=fe94e898b912ef08dba998e7341559c8618d39bd;hpb=c6380108964e71f533d8c672bb9c217020a95e8d;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req-v2.h b/include/afb/afb-req-v2.h index fe94e898..78d640aa 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) 2016-2019 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,16 +17,23 @@ #pragma once -#include "afb-req-common.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); } + +/** @} */