Home
last modified time | relevance | path

Searched hist:eb639c575a7964b849117cc70b6102f17a2dc32a (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-fan-presence/control/
H A Dfunctor.hppdiff eb639c575a7964b849117cc70b6102f17a2dc32a Fri Aug 04 09:43:11 CDT 2017 Matthew Barth <msbarth@us.ibm.com> Add support to handle InterfacesAdded signals

Set speed events can not subscribe to InterfaceAdded signals for
properties that are created after fan control initializes the event. Fan
control subscribes to property changed signals for all events upon
startup where any properties that do not exist are unable to be
subscribed to and be notified when their property changes. Therefore,
subscribing to the InterfacesAdded signals for properties as well allows
any property defined within a set speed event that may not exist upon
starting the fan control application get added or updated when the
interface it resides on is added.

When a subscribed InterfacesAdded signal is caught, the same setProperty
handler function will be used to add the property value for the object
path, interface, and property name defined to be subscribed to for
property change signals.

Change-Id: If6fe97288140b83e2e2d735fdf61d52de1ec2e88
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>