diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-22 15:17:31 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-09 14:08:33 +0200 |
commit | 59cd34b59853f6a47e756d7ab5bc0329f40a471c (patch) | |
tree | 8655c0191ac3e1bf5d11236909c2422dcd4cd801 /include/afb/afb-request-itf.h | |
parent | 325e6a7f034c80562096d60ab01f2e4532eea98c (diff) |
Allow dynamic creation of APIs
Change-Id: I825bfa7969c98dd214457d9ff94e2948362286a9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-request-itf.h')
-rw-r--r-- | include/afb/afb-request-itf.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; }; /* |