diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2018-04-29 22:36:12 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2018-04-29 22:36:12 +0200 |
commit | 8372b87f2be8fe5b8655001e92572af4d96ddbf6 (patch) | |
tree | f5a2865b59b486deedaa089ede7e5f94f99ef9fe /mixer-binding | |
parent | f83d651392b8556248600f2b1360b9306b845c3d (diff) |
Hack config to bypass limitation and load plugin
Diffstat (limited to 'mixer-binding')
-rw-r--r-- | mixer-binding/mixer-binding.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mixer-binding/mixer-binding.c b/mixer-binding/mixer-binding.c index ae83932..8fb4b50 100644 --- a/mixer-binding/mixer-binding.c +++ b/mixer-binding/mixer-binding.c @@ -74,6 +74,8 @@ STATIC int CtrlInitOneApi (AFB_ApiT apiHandle) { } // next generation dynamic API-V3 mode +#include <signal.h> + STATIC int CtrlLoadOneApi (void *cbdata, AFB_ApiT apiHandle) { CtlConfigT *ctrlConfig = (CtlConfigT*) cbdata; @@ -81,8 +83,6 @@ STATIC int CtrlLoadOneApi (void *cbdata, AFB_ApiT apiHandle) { // save closure as api's data context afb_dynapi_set_userdata(apiHandle, ctrlConfig); - AFB_ApiNotice (apiHandle, "debug1"); - // add static controls verbs int err = CtrlLoadStaticVerbs (apiHandle, CtrlApiVerbs); if (err) { @@ -90,13 +90,9 @@ STATIC int CtrlLoadOneApi (void *cbdata, AFB_ApiT apiHandle) { goto OnErrorExit; } - AFB_ApiNotice (apiHandle, "debug2"); - // load section for corresponding API err= CtlLoadSections(apiHandle, ctrlConfig, ctrlSections); - AFB_ApiNotice (apiHandle, "debug3"); - // declare an event event manager for this API; afb_dynapi_on_event(apiHandle, CtrlDispatchApiEvent); @@ -119,9 +115,9 @@ PUBLIC int afbBindingVdyn(afb_dynapi *apiHandle) { const char *dirList= getenv("CONTROL_CONFIG_PATH"); if (!dirList) dirList=CONTROL_CONFIG_PATH; - const char *configPath = CtlConfigSearch(apiHandle, dirList, "config-"); + const char *configPath = CtlConfigSearch(apiHandle, dirList, "4a-"); if (!configPath) { - AFB_ApiError(apiHandle, "CtlPreInit: No config-%s-* config found in %s ", GetBinderName(), dirList); + AFB_ApiError(apiHandle, "CtlPreInit: No 4a-%s-* config found in %s ", GetBinderName(), dirList); goto OnErrorExit; } |