aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding')
-rw-r--r--signal-composer-binding/signal.cpp1
-rw-r--r--signal-composer-binding/signal.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp
index dfa3d5f..673295a 100644
--- a/signal-composer-binding/signal.cpp
+++ b/signal-composer-binding/signal.cpp
@@ -57,6 +57,7 @@ bool Signal::operator ==(const std::string& aName) const
for( const std::string& src : signalSigList_)
{
if(! fnmatch(aName.c_str(), src.c_str(), FNM_CASEFOLD)) {return true;}
+ if( src.find(aName) != std::string::npos) {return true;}
}
return false;
}
diff --git a/signal-composer-binding/signal.hpp b/signal-composer-binding/signal.hpp
index 34e6ab1..ba7ed60 100644
--- a/signal-composer-binding/signal.hpp
+++ b/signal-composer-binding/signal.hpp
@@ -59,6 +59,7 @@ public:
const std::string id() const;
json_object* toJSON() const;
+ void set(long long int timestamp, struct SignalValue& value);
void update(long long int timestamp, struct SignalValue value);
int onReceivedCB(json_object *queryJ);
void attachToSourceSignals(bindingApp& bApp);