diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-24 12:27:33 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 15:02:55 +0100 |
commit | 56ae1be0fb312bfabcae1aa2aff30bf4faa7d915 (patch) | |
tree | e1b0f157a3e994c1fcae3fcf7bda093622d6cb53 /ctl-lib | |
parent | fe738b566a8b2319183a2cdb727868d306ec525b (diff) |
Fix: compatibility with binder FF.RC4
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')
-rw-r--r-- | ctl-lib/afb-definitions.h | 8 |
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__) |