path: root/control/functor.hpp
diff options
authorMatthew Barth <>2019-01-29 12:44:13 -0600
committerMatthew Barth <>2019-02-13 14:31:44 -0600
commit766f8545fd3eb5010f5a262aa398f3a11dcc07d7 (patch)
tree2882b910a40863af28aa2ca2d90c72800d51b0b7 /control/functor.hpp
parent6faf8943ddb3888485a50269fe43a6d5b6f68afc (diff)
Store and access zone object properties
Properties on the zone object require their event data to be stored for retrieval when their value changes, which allows the use of the current event handlers to update the cached value and trigger the event actions. When any event is initialized, any signals where the match string is empty performs a lookup for each group member to determine if they are on the zone object. Each member found to be on the zone object is then stored with the that event's data. Tested: Verified event data is stored for members on the zone object Verified event initialization correctly accesses zone object member's event data Change-Id: Id34f60eb12330428eeb1041de4e9bd1a4a686f21 Signed-off-by: Matthew Barth <>
Diffstat (limited to 'control/functor.hpp')
1 files changed, 1 insertions, 6 deletions
diff --git a/control/functor.hpp b/control/functor.hpp
index b96f650..71607c5 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -106,12 +106,7 @@ struct PropertyChanged
- auto service = zone.getService(_path, _iface);
- auto val = util::SDBusPlus::getProperty<T>(bus,
- service,
- _path,
- _iface,
- _property);
+ auto val = zone.getPropertyByName<T>(_path, _iface, _property);
_handler(zone, std::forward<T>(val));
catch (const sdbusplus::exception::SdBusError&)
OpenPOWER on IntegriCloud