diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-03-29 17:44:48 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-04-11 20:39:06 +0200 |
commit | 8ef54e0215c06241c3487f78dd2ea50fbe6af903 (patch) | |
tree | 9eb8a4562999a9def8f4dfb836ec1292490760b8 /signal-composer-binding/signal-composer.cpp | |
parent | 4ee02574c30a3195cdbb20bcf72fc4cc65bddb1e (diff) |
Git submodule migration to separated libraries
Replace controller binder functions definition with the binder ones
and remove the submodules in favor of the separated libraries.
Bug-AGL: SPEC-2139
Change-Id: I06e5e7a03a918bf0ce139636104e1a73d2442a09
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer.cpp')
-rw-r--r-- | signal-composer-binding/signal-composer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp index 324d96e..9abe54e 100644 --- a/signal-composer-binding/signal-composer.cpp +++ b/signal-composer-binding/signal-composer.cpp @@ -84,7 +84,7 @@ Composer::~Composer() free(ctlConfig_); } -CtlActionT* Composer::convert2Action(AFB_ApiT apihandle, const std::string& name, json_object* actionJ) +CtlActionT* Composer::convert2Action(afb_api_t apihandle, const std::string& name, json_object* actionJ) { CtlActionT *ctlAction = new CtlActionT; @@ -96,7 +96,7 @@ CtlActionT* Composer::convert2Action(AFB_ApiT apihandle, const std::string& name return nullptr; } -int Composer::loadOneSourceAPI(AFB_ApiT apihandle, json_object* sourceJ) +int Composer::loadOneSourceAPI(afb_api_t apihandle, json_object* sourceJ) { json_object *initJ = nullptr, *getSignalsJ = nullptr, @@ -158,7 +158,7 @@ int Composer::loadOneSourceAPI(AFB_ApiT apihandle, json_object* sourceJ) return err; } -int Composer::loadSourcesAPI(AFB_ApiT apihandle, CtlSectionT* section, json_object *sourcesJ) +int Composer::loadSourcesAPI(afb_api_t apihandle, CtlSectionT* section, json_object *sourcesJ) { int err = 0; Composer& composer = instance(); @@ -209,7 +209,7 @@ int Composer::loadSourcesAPI(AFB_ApiT apihandle, CtlSectionT* section, json_obje return err; } -int Composer::loadOneSignal(AFB_ApiT apihandle, json_object* signalJ) +int Composer::loadOneSignal(afb_api_t apihandle, json_object* signalJ) { json_object *onReceivedJ = nullptr, *dependsJ = nullptr, @@ -334,7 +334,7 @@ int Composer::loadOneSignal(AFB_ApiT apihandle, json_object* signalJ) return err; } -int Composer::loadSignals(AFB_ApiT apihandle, CtlSectionT* section, json_object *signalsJ) +int Composer::loadSignals(afb_api_t apihandle, CtlSectionT* section, json_object *signalsJ) { int err = 0; Composer& composer = instance(); @@ -421,7 +421,7 @@ void Composer::destroyContext(void* ctx) delete(reinterpret_cast<clientAppCtx*>(ctx)); } -int Composer::loadConfig(AFB_ApiT api, std::string& filepath) +int Composer::loadConfig(afb_api_t api, std::string& filepath) { const char *dirList= getenv("CONTROL_CONFIG_PATH"); if (!dirList) dirList=CONTROL_CONFIG_PATH; @@ -482,7 +482,7 @@ void Composer::initSourcesAPI() } } -int Composer::initSignals(AFB_ReqT request) +int Composer::initSignals(afb_req_t request) { for(int i=0; i < sourcesListV_.size(); i++) { @@ -581,7 +581,7 @@ json_object* Composer::getsignalValue(const std::string& sig, json_object* optio return finalResponse; } -int Composer::execSignalsSubscription(AFB_ReqT request) +int Composer::execSignalsSubscription(afb_req_t request) { int err = 0;; for(std::shared_ptr<SourceAPI> srcAPI: sourcesListV_) |