From 2b037bbfd58046219d9cd083ae9422b9fc200ad4 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 22 Sep 2017 18:35:13 +0200 Subject: Add wrappers for accesses to internals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6144b0ab21418dc98792f0eeef695f3df0fc11d3 Signed-off-by: José Bollo --- include/afb/afb-request.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/afb/afb-request.h') diff --git a/include/afb/afb-request.h b/include/afb/afb-request.h index 678922b3..fcab03c3 100644 --- a/include/afb/afb-request.h +++ b/include/afb/afb-request.h @@ -19,6 +19,26 @@ #include "afb-request-itf.h" +static inline struct afb_dynapi *afb_request_get_dynapi(struct afb_request *request) +{ + return request->dynapi; +} + +static inline void *afb_request_get_vcbdata(struct afb_request *request) +{ + return request->vcbdata; +} + +static inline const char *afb_request_get_api(struct afb_request *request) +{ + return request->api; +} + +static inline const char *afb_request_get_verb(struct afb_request *request) +{ + return request->verb; +} + /* * Gets from the request 'request' the argument of 'name'. * Returns a PLAIN structure of type 'struct afb_arg'. -- cgit 1.2.3-korg