From 7a7268a5697b0b988bcabc00390878edee941b4e Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 22 Sep 2017 16:24:24 +0200 Subject: Provide API and VERB name of requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9a86c6314f871334231e50f9cea60b54aed434b9 Signed-off-by: José Bollo --- include/afb/afb-request-itf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/afb/afb-request-itf.h b/include/afb/afb-request-itf.h index eb7c5347..e542442c 100644 --- a/include/afb/afb-request-itf.h +++ b/include/afb/afb-request-itf.h @@ -51,12 +51,18 @@ struct afb_request /* interface for the request */ const struct afb_request_itf *itf; - /* current dynapi if dynapi (is NULL for bindings v1 and v2) */ + /* current dynapi (if any) */ struct afb_dynapi *dynapi; /* closure associated with the callback processing the verb of the request * as given at its declaration */ void *vcbdata; + + /* the name of the called verb */ + const char *api; + + /* the name of the called verb */ + const char *verb; }; /* -- cgit 1.2.3-korg