diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-18 14:30:01 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | c7d508ecd4c57b1f8f372f4e5042d834b7f42ff4 (patch) | |
tree | c96a5a03cea86db6266204b8d4efd371e5664321 /signal-composer-binding/signal-composer.hpp | |
parent | 08571bc92a047bac2de2f2f133277e6b1fa4ffb6 (diff) |
Make callback from plugin work
Can't shared C++ symbol easily with plugin so workaround
with a separate static function that handle the job
Change-Id: I1208b51bc47c2daa5f08e10b25260cf206f90aed
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.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/signal-composer-binding/signal-composer.hpp b/signal-composer-binding/signal-composer.hpp index 2c7c2e2..341eaab 100644 --- a/signal-composer-binding/signal-composer.hpp +++ b/signal-composer-binding/signal-composer.hpp @@ -55,3 +55,10 @@ public: int execSubscription() const; }; + +struct pluginCBT +{ + void (*setSignalValue)(const char* aName, long long int timestamp, struct SignalValue value); +}; + +extern "C" void setSignalValueHandle(const char* aName, long long int timestamp, struct SignalValue value); |