diff options
Diffstat (limited to 'signal-composer-binding')
-rw-r--r-- | signal-composer-binding/signal-composer-binding.cpp | 2 | ||||
-rw-r--r-- | signal-composer-binding/signal-composer.cpp | 2 | ||||
-rw-r--r-- | signal-composer-binding/source.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp index 0d9c8e3..50eb03b 100644 --- a/signal-composer-binding/signal-composer-binding.cpp +++ b/signal-composer-binding/signal-composer-binding.cpp @@ -265,7 +265,7 @@ void get(struct afb_req request) int loadConf() { int err = 0; - std::string bindingDirPath = GetBindingDirPath(); + std::string bindingDirPath = GetBindingDirPath(nullptr); std::string rootdir = bindingDirPath + "/etc"; err = Composer::instance().loadConfig(rootdir); diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp index ce4fe47..4b92f7e 100644 --- a/signal-composer-binding/signal-composer.cpp +++ b/signal-composer-binding/signal-composer.cpp @@ -461,7 +461,7 @@ int Composer::loadConfig(std::string& filepath) if (!dirList) dirList=CONTROL_CONFIG_PATH; filepath.append(":"); filepath.append(dirList); - const char *configPath = CtlConfigSearch(nullptr, filepath.c_str(), "control-"); + const char *configPath = CtlConfigSearch(nullptr, filepath.c_str(), "control"); if (!configPath) { AFB_ApiError(apiHandle, "CtlPreInit: No control-* config found invalid JSON %s ", filepath.c_str()); diff --git a/signal-composer-binding/source.cpp b/signal-composer-binding/source.cpp index 6832320..d7a5915 100644 --- a/signal-composer-binding/source.cpp +++ b/signal-composer-binding/source.cpp @@ -50,7 +50,7 @@ void SourceAPI::init() source.uid = init_->uid; source.api = nullptr; // We use binding v2, no dynamic API. source.request = {nullptr, nullptr}; - ActionExecOne(&source, init_, nullptr); + ActionExecOne(&source, init_, json_object_new_object()); return; } else if(api_ == afbBindingV2.api) |