summaryrefslogtreecommitdiffstats
path: root/src/mapis.c
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2018-11-28 10:22:45 +0100
committerFrederic Marec <frederic.marec@iot.bzh>2018-11-30 12:11:25 +0100
commitdf71761154c09b051ca17fe8cdf63ae477a4f471 (patch)
tree51c4eb2380127786a4302d6e0e6db1be9090316d /src/mapis.c
parent012fd23c3f67f826eed267f1c5235809fa51c2bc (diff)
Bump app-controller-submodule
Bump app-controller-submodule Fix ctrlConfig following app-controller-submodule modification Change-Id: Ifd93d20bbff336420f478229f640d8304b502fc4 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'src/mapis.c')
-rw-r--r--src/mapis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapis.c b/src/mapis.c
index fbe3e68..c356208 100644
--- a/src/mapis.c
+++ b/src/mapis.c
@@ -33,6 +33,8 @@ static int LoadOneMapi(void *data, afb_api_t apiHandle) {
struct mapisHandleT *mapisHandle = (struct mapisHandleT*)data;
CtlConfigT *ctrlConfig = afb_api_get_userdata(mapisHandle->mainApiHandle);
+ afb_api_set_userdata(apiHandle, ctrlConfig);
+
if(PluginConfig(apiHandle, mapisHandle->section, mapisHandle->mapiJ)) {
AFB_API_ERROR(apiHandle, "Problem loading the plugin as an API for %s, see log message above", json_object_get_string(mapisHandle->mapiJ));
return -1;