aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapis.c
diff options
context:
space:
mode:
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;