aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-control.c
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-09-04 10:20:18 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-09-04 10:20:18 +0200
commitc33c8c220fae362a86d747bb5d91d02a9116d2c5 (patch)
tree19525c64cb4c842cd71e4bf9a59f533b6372a22e /ctl-lib/ctl-control.c
parenta185e5cf960ec2083fc45048e93a3a22a02c094f (diff)
controller: compatibility with v2
build it with AFB_BINDING_VERSION=0 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-control.c')
-rw-r--r--ctl-lib/ctl-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-control.c b/ctl-lib/ctl-control.c
index 0605d6b..8669d00 100644
--- a/ctl-lib/ctl-control.c
+++ b/ctl-lib/ctl-control.c
@@ -23,11 +23,11 @@
#include "ctl-config.h"
// onload section receive one action or an array of actions
-int ControlConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ) {
+int ControlConfig_V3(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ) {
// Load time parse actions in config file
if (actionsJ != NULL) {
- section->actions= ActionConfig(apiHandle, actionsJ, 1);
+ section->actions= ActionConfig_V3(apiHandle, actionsJ, 1);
if (!section->actions) {
AFB_ApiError (apiHandle, "ControlLoad config fail processing onload actions");