summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-05-31 11:07:24 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-05-31 12:46:08 -0500
commitdf3e8d67fd8afb78105f516eac360d0a7d44326f (patch)
tree0958681b22c63dc9d7fe31880ff58638f4d1d7fe /control/zone.hpp
parent861d77c39a3b69d5be43aceca72602beb18165df (diff)
downloadphosphor-fan-presence-df3e8d67fd8afb78105f516eac360d0a7d44326f.tar.gz
phosphor-fan-presence-df3e8d67fd8afb78105f516eac360d0a7d44326f.zip
Check initial event's group members' properties
On start of fan control, check the current event's group members' property states and envoke the defined action function on the results. Change-Id: I12509403328d90f85d67b393dbdd97d8710c83ef Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index b727567..c6e0594 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -154,6 +154,22 @@ class Zone
std::vector<sdbusplus::server::match::match> _matches;
/**
+ * @brief Get a property value from the path/interface given
+ *
+ * @param[in] bus - the bus to use
+ * @param[in] path - the dbus path name
+ * @param[in] iface - the dbus interface name
+ * @param[in] prop - the property name
+ * @param[out] value - the value of the property
+ */
+ template <typename T>
+ static void getProperty(sdbusplus::bus::bus& bus,
+ const std::string& path,
+ const std::string& iface,
+ const std::string& prop,
+ T& value);
+
+ /**
* @brief Dbus signal change handler
*
* @param[in] msg - Data associated with the subscribed signal
OpenPOWER on IntegriCloud