projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83375c9
)
subscribeToProperty being called on the source now
author
Kevron Rees
<tripzero.kev@gmail.com>
Tue, 28 Aug 2012 14:15:21 +0000
(07:15 -0700)
committer
Kevron Rees
<tripzero.kev@gmail.com>
Tue, 28 Aug 2012 14:15:21 +0000
(07:15 -0700)
ambd/core.cpp
patch
|
blob
|
history
diff --git
a/ambd/core.cpp
b/ambd/core.cpp
index
d30f6f4
..
34ed1af
100644
(file)
--- a/
ambd/core.cpp
+++ b/
ambd/core.cpp
@@
-170,6
+170,15
@@
void Core::subscribeToProperty(VehicleProperty::Property property, AbstractSink*
propertySinkMap[property].push_back(self);
}
+ for(SourceList::iterator itr = mSources.begin(); itr != mSources.end(); itr++)
+ {
+ AbstractSource* src = (*itr);
+ PropertyList properties = src->supported();
+ if(ListPlusPlus<VehicleProperty::Property>(&properties).contains(property))
+ {
+ src->subscribeToPropertyChanges(property);
+ }
+ }
}
void Core::unsubscribeToProperty(VehicleProperty::Property property, AbstractSink* self)