diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-05 16:51:25 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:49 +0100 |
commit | fb487caec38c0da7a43bab850af6aa79b07befde (patch) | |
tree | da3c46e3e8dcd4627fee54f784b391b284d373b5 /signal-composer-binding/signal.hpp | |
parent | 2c3a3ca76a57efa1cd825d140fb26fdec3482ee8 (diff) |
Hold all contexts (plugin & source) in signalCtx_
Keeping persistence between call data are kept in that member
also subscription Action now use getSignals_ context and no more
the signal one, this is more accurate and simples
Change-Id: Idd7c56ba30f1daa9eaf9b99a7261d58189ef0bb2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal.hpp')
-rw-r--r-- | signal-composer-binding/signal.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/signal-composer-binding/signal.hpp b/signal-composer-binding/signal.hpp index 97ab4c7..0fbb0a6 100644 --- a/signal-composer-binding/signal.hpp +++ b/signal-composer-binding/signal.hpp @@ -73,6 +73,7 @@ private: std::string unit_; CtlActionT* onReceived_; json_object* getSignalsArgs_; + struct signalCBT* signalCtx_; public: bool subscribed_; ///< subscribed_ - boolean value telling if yes or no the signal has been subcribed to the low level binding. @@ -114,4 +115,5 @@ struct signalCBT void (*searchNsetSignalValue)(const char* aName, uint64_t timestamp, struct signalValue value); void (*setSignalValue)(void* aSignal, uint64_t timestamp, struct signalValue value); void* aSignal; + void* pluginCtx; }; |