diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-16 16:31:59 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-23 09:59:57 +0100 |
commit | e1ef945da61ae0dfec7a5c8d1e9cde2716c0c1fd (patch) | |
tree | 43ebffa011d24f30f654f8914bc96d43cb3dce74 /signal-composer-binding/source.cpp | |
parent | 71507d3afbb92f6751d6d7af5eeb1796ff13f246 (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/source.cpp')
-rw-r--r-- | signal-composer-binding/source.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/signal-composer-binding/source.cpp b/signal-composer-binding/source.cpp index 939e3f6..f400731 100644 --- a/signal-composer-binding/source.cpp +++ b/signal-composer-binding/source.cpp @@ -48,12 +48,10 @@ void SourceAPI::init() { CtlSourceT source; source.uid = init_->uid; - source.api = nullptr; // We use binding v2, no dynamic API. - source.request = {nullptr, nullptr}; ActionExecOne(&source, init_, json_object_new_object()); return; } - else if(api_ == afbBindingV2.api) + else if(api_ == afbBindingV3root->apiname) {api_ = Composer::instance().ctlConfig()->api;} } @@ -157,15 +155,14 @@ int SourceAPI::cleanNotSubscribedSignals() { return erased; } -int SourceAPI::makeSubscription() +int SourceAPI::makeSubscription(AFB_ReqT request) { int err = 0; if(getSignals_) { CtlSourceT source; source.uid = api_.c_str(); - source.api = nullptr; // We use binding v2, no dynamic API. - source.request = {nullptr, nullptr}; + source.request = request; json_object *argsSaveJ = getSignals_->argsJ; for(auto& sig: signalsM_) |