summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-23 16:16:30 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-07-06 17:25:12 -0500
commit1bf0ce4bef11cf2ff24b82257625f6288823377e (patch)
tree7f17f35efc2006755ff06cbf8d52f25db7908a44 /control/zone.hpp
parent8600d9a0058071951e0881037deff77fc03d1601 (diff)
downloadphosphor-fan-presence-1bf0ce4bef11cf2ff24b82257625f6288823377e.tar.gz
phosphor-fan-presence-1bf0ce4bef11cf2ff24b82257625f6288823377e.zip
Move event init steps at startup to functions
Change-Id: I8a281935368cd705658d489c7c7af59b8dde7e4d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 30de150..bdde64a 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -309,6 +309,26 @@ class Zone
std::vector<sdbusplus::server::match::match> _matches;
/**
+ * @brief Initialize all the set speed event properties and actions
+ *
+ * @param[in] def - zone definition containing set speed events
+ */
+ void initEvents(const ZoneDefinition& def);
+
+ /**
+ * @brief Refresh the given property's cached value
+ *
+ * @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
+ */
+ void refreshProperty(sdbusplus::bus::bus& bus,
+ const std::string& path,
+ const std::string& iface,
+ const std::string& prop);
+
+ /**
* @brief Get a property value from the path/interface given
*
* @param[in] bus - the bus to use
OpenPOWER on IntegriCloud