summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
m---------app-controller-submodule0
-rw-r--r--src/mapis.c2
2 files changed, 2 insertions, 0 deletions
diff --git a/app-controller-submodule b/app-controller-submodule
-Subproject ce075383309a30bb7084309014c7f1c2f699bf0
+Subproject 303022b794410a69daeb47e20a87fe7625b1870
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;