summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding')
-rw-r--r--signal-composer-binding/signal-composer-binding.cpp2
-rw-r--r--signal-composer-binding/signal-composer-binding.hpp1
-rw-r--r--signal-composer-binding/signal-composer.cpp8
3 files changed, 5 insertions, 6 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp
index 50eb03b..0d9c8e3 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(nullptr);
+ std::string bindingDirPath = GetBindingDirPath();
std::string rootdir = bindingDirPath + "/etc";
err = Composer::instance().loadConfig(rootdir);
diff --git a/signal-composer-binding/signal-composer-binding.hpp b/signal-composer-binding/signal-composer-binding.hpp
index 24943ca..8ffdd76 100644
--- a/signal-composer-binding/signal-composer-binding.hpp
+++ b/signal-composer-binding/signal-composer-binding.hpp
@@ -1,6 +1,5 @@
#pragma once
-#define AFB_BINDING_VERSION 2
#include <afb/afb-binding>
void onEvent(const char *event, struct json_object *object);
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp
index 4b92f7e..535e85b 100644
--- a/signal-composer-binding/signal-composer.cpp
+++ b/signal-composer-binding/signal-composer.cpp
@@ -62,19 +62,19 @@ static struct signalCBT pluginHandle = {
};
CtlSectionT Composer::ctlSections_[] = {
- [0]={.key="plugins" , .uid="plugins", .info=nullptr,
+ [0]={.key="plugins" , .uid="plugins", .info=nullptr, .prefix=nullptr,
.loadCB=PluginConfig,
.handle=&pluginHandle,
.actions=nullptr},
- [1]={.key="sources" , .uid="sources", .info=nullptr,
+ [1]={.key="sources" , .uid="sources", .info=nullptr, .prefix=nullptr,
.loadCB=loadSourcesAPI,
.handle=nullptr,
.actions=nullptr},
- [2]={.key="signals" , .uid="signals", .info=nullptr,
+ [2]={.key="signals" , .uid="signals", .info=nullptr, .prefix=nullptr,
.loadCB=loadSignals,
.handle=nullptr,
.actions=nullptr},
- [3]={.key=nullptr, .uid=nullptr, .info=nullptr,
+ [3]={.key=nullptr, .uid=nullptr, .info=nullptr, .prefix=nullptr,
.loadCB=nullptr,
.handle=nullptr,
.actions=nullptr}