diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-22 09:23:11 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | e4258ef6e45009b5625f85ec7e4f8946805e1c4a (patch) | |
tree | 90cede1867442e0437aa240d6acc8e5ca40ef5fd /signal-composer-binding/signal-composer.hpp | |
parent | 960d051d0a20b7146617880d30ad2496afa1f5e5 (diff) |
Subscribe
Change-Id: I7bbe972254d60f89cb26c98ea8519af087d8ae90
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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/signal-composer-binding/signal-composer.hpp b/signal-composer-binding/signal-composer.hpp index afd987b..95cbc68 100644 --- a/signal-composer-binding/signal-composer.hpp +++ b/signal-composer-binding/signal-composer.hpp @@ -16,7 +16,6 @@ */ #pragma once -#include <uuid.h> #include <memory> #include <vector> #include <string> @@ -25,7 +24,6 @@ typedef struct clientAppCtxS { - uuid_t uid; std::vector<std::shared_ptr<Signal>> subscribedSignals; struct afb_event event; } clientAppCtxT; @@ -37,6 +35,7 @@ private: static CtlSectionT ctlSections_[]; ///< Config Section definition (note: controls section index should match handle retrieval in) std::vector<SourceAPI> sourcesListV_; + std::vector<clientAppCtxT*> subscriptions_; explicit Composer(const std::string& filepath); Composer(); @@ -66,7 +65,10 @@ public: std::vector<std::shared_ptr<Signal>> searchSignals(const std::string& aName); json_object* getSignalValue(const std::string& sig, json_object* options); - int execSubscription(); + int execSignalsSubscription(); + + void addSubscription(clientAppCtxT* ctx); + void removeSubscription(clientAppCtxT* ctx); }; struct pluginCBT |