summaryrefslogtreecommitdiffstats
path: root/ctl-lib/afb-definitions.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-24 12:27:33 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-08-24 11:57:40 +0000
commit82820f44b1307ef8c6e12a505f383037fdad9fcb (patch)
treee1b0f157a3e994c1fcae3fcf7bda093622d6cb53 /ctl-lib/afb-definitions.h
parent02bbf590b6002e63988a23f8a80662529814a1da (diff)
Fix: compatibility with binder FF.RC4flounder_5.99.4flounder/5.99.45.99.4
binder FF.RC4 provides the missing define afb_service_call[_sync]_legacy which doesn't fit with define in the controller as the first argument API is already given by the app framework binder. Change-Id: Ia2d01b172386d96354d356e66817b166985fa646 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/afb-definitions.h')
-rw-r--r--ctl-lib/afb-definitions.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ctl-lib/afb-definitions.h b/ctl-lib/afb-definitions.h
index 1f4495f..5a749c6 100644
--- a/ctl-lib/afb-definitions.h
+++ b/ctl-lib/afb-definitions.h
@@ -132,13 +132,17 @@
#define AFB_ReqIsValid(request) request
#define AFB_EvtIsValid(evtHandle) evtHandle
+/*
+ * Binder version < FF.RC4, we miss two defined calls.
+ * This is for compatibility purpose that we defined them here.
+ */
#if ! defined(afb_service_call_legacy) || ! defined(afb_service_call_sync_legacy)
#define afb_service_call_legacy afb_api_x3_call_legacy
#define afb_service_call_sync_legacy afb_api_x3_call_sync_legacy
#endif
- #define AFB_ServiceCall(api, ...) afb_service_call_legacy(api,__VA_ARGS__)
- #define AFB_ServiceSync(api, ...) afb_service_call_sync_legacy(api, __VA_ARGS__)
+ #define AFB_ServiceCall(api, ...) afb_api_call_legacy(api, __VA_ARGS__)
+ #define AFB_ServiceSync(api, ...) afb_api_call_sync_legacy(api, __VA_ARGS__)
#define AFB_ApiCall(api, ...) afb_api_call(api, __VA_ARGS__)
#define AFB_ApiSync(api, ...) afb_api_call_sync(api, __VA_ARGS__)