summaryrefslogtreecommitdiffstats
path: root/src/afb-xreq.h
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-02-18 14:31:25 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-04-02 09:58:49 +0200
commitec0564bc90b3c63f7e82f09e81db8bd2cfac89a2 (patch)
treeb61f04cc61fb45af20dd594c4eab2f0ae623fc01 /src/afb-xreq.h
parent2ba7c200c6c4844b63f8f707a6f04017661f16ca (diff)
Add conditionnal support of bindings version 2
Bindings version 2 will become legacy soon. This patch allows their removal Change-Id: Iecad3abd0ddd714e5d55c0b935be756a29d1ca37 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-xreq.h')
-rw-r--r--src/afb-xreq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afb-xreq.h b/src/afb-xreq.h
index da966a44..f1945a02 100644
--- a/src/afb-xreq.h
+++ b/src/afb-xreq.h
@@ -85,6 +85,7 @@ struct afb_xreq
/* req wrappers for xreq */
extern struct afb_req_x1 afb_xreq_unstore(struct afb_stored_req *sreq);
+
extern void afb_xreq_addref(struct afb_xreq *xreq);
extern void afb_xreq_unref(struct afb_xreq *xreq);
extern void afb_xreq_unhooked_addref(struct afb_xreq *xreq);
@@ -154,8 +155,13 @@ extern void afb_xreq_init(struct afb_xreq *xreq, const struct afb_xreq_query_itf
extern void afb_xreq_process(struct afb_xreq *xreq, struct afb_apiset *apiset);
+#if WITH_LEGACY_BINDING_V1
extern void afb_xreq_call_verb_v1(struct afb_xreq *xreq, const struct afb_verb_desc_v1 *verb);
+#endif
+#if WITH_LEGACY_BINDING_V2
extern void afb_xreq_call_verb_v2(struct afb_xreq *xreq, const struct afb_verb_v2 *verb);
+#endif
+
extern void afb_xreq_call_verb_v3(struct afb_xreq *xreq, const struct afb_verb_v3 *verb);
extern const char *xreq_on_behalf_cred_export(struct afb_xreq *xreq);