summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-16 16:31:59 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-23 09:59:57 +0100
commite1ef945da61ae0dfec7a5c8d1e9cde2716c0c1fd (patch)
tree43ebffa011d24f30f654f8914bc96d43cb3dce74 /signal-composer-binding/signal-composer.hpp
parent71507d3afbb92f6751d6d7af5eeb1796ff13f246 (diff)
Binding migration to v3guppy_6.99.1guppy/6.99.16.99.1
Change-Id: I8a5bc18a0bf8ad05ce83b6ff64d4329d42bff2b0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer.hpp')
-rw-r--r--signal-composer-binding/signal-composer.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/signal-composer-binding/signal-composer.hpp b/signal-composer-binding/signal-composer.hpp
index 72cd3ee..f70e9ac 100644
--- a/signal-composer-binding/signal-composer.hpp
+++ b/signal-composer-binding/signal-composer.hpp
@@ -34,25 +34,25 @@ private:
Composer();
~Composer();
- CtlActionT* convert2Action(const std::string& name, json_object* action);
+ CtlActionT* convert2Action(AFB_ApiT apihandle, const std::string& name, json_object* action);
- int loadOneSourceAPI(json_object* sourcesJ);
+ int loadOneSourceAPI(AFB_ApiT apihandle, json_object* sourcesJ);
static int loadSourcesAPI(AFB_ApiT apihandle, CtlSectionT* section, json_object *signalsJ);
- int loadOneSignal(json_object* signalsJ);
+ int loadOneSignal(AFB_ApiT apihandle, json_object* signalsJ);
static int loadSignals(AFB_ApiT apihandle, CtlSectionT* section, json_object *signalsJ);
- int execSignalsSubscription();
+ int execSignalsSubscription(AFB_ReqT request = nullptr);
std::shared_ptr<SourceAPI> getSourceAPI(const std::string& api);
void processOptions(const std::map<std::string, int>& opts, std::shared_ptr<Signal> sig, json_object* response) const;
public:
static Composer& instance();
static void* createContext(void* ctx);
static void destroyContext(void* ctx);
- int loadConfig(std::string& filepath);
+ int loadConfig(AFB_ApiT api, std::string& filepath);
int loadSources(json_object* sourcesJ);
int loadSignals(json_object* signalsJ);
- int initSignals();
+ int initSignals(AFB_ReqT request = nullptr);
void initSourcesAPI();
CtlConfigT* ctlConfig();