From 59cd34b59853f6a47e756d7ab5bc0329f40a471c Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 22 Sep 2017 15:17:31 +0200 Subject: Allow dynamic creation of APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I825bfa7969c98dd214457d9ff94e2948362286a9 Signed-off-by: José Bollo --- include/afb/afb-request-itf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/afb/afb-request-itf.h') diff --git a/include/afb/afb-request-itf.h b/include/afb/afb-request-itf.h index 9e55a361..b9e4366a 100644 --- a/include/afb/afb-request-itf.h +++ b/include/afb/afb-request-itf.h @@ -28,6 +28,7 @@ struct json_object; struct afb_req; struct afb_event; struct afb_eventid; +struct afb_dynapi; struct afb_stored_req; /* @@ -42,9 +43,16 @@ struct afb_arg /* when the request is finalized this file is removed */ }; +/* + * structure for the request + */ struct afb_request { + /* interface for the request */ const struct afb_request_itf *itf; + + /* current dynapi if dynapi (is NULL for bindings v1 and v2) */ + struct afb_dynapi *dynapi; }; /* -- cgit 1.2.3-korg