summaryrefslogtreecommitdiffstats
path: root/app/watchdog_service.hpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-04-27 14:31:51 -0700
committerEmily Shaffer <emilyshaffer@google.com>2018-05-22 18:22:20 +0000
commit2ecf51204690d99477352188e2b83def7a7c1f1a (patch)
tree219f098a1e6ca8a81cb5dcd18742e83075a6fada /app/watchdog_service.hpp
parent4b017a9b8728d19880d8d0de9cb994d7c0273769 (diff)
downloadphosphor-host-ipmid-2ecf51204690d99477352188e2b83def7a7c1f1a.tar.gz
phosphor-host-ipmid-2ecf51204690d99477352188e2b83def7a7c1f1a.zip
watchdog: Get only the initialized property during reset
Since we switched to resetting the watchdog with a built-in method, we are only using a single property from the watchdog. Instead of fetching all the properties and reading just the initialized one, only request the initialized property from the watchdog. Change-Id: I5e29b5100629e1ce23f352b0b749a434cd1ab793 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'app/watchdog_service.hpp')
-rw-r--r--app/watchdog_service.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp
index ad92213..dfc913a 100644
--- a/app/watchdog_service.hpp
+++ b/app/watchdog_service.hpp
@@ -41,8 +41,15 @@ class WatchdogService {
*/
Properties getProperties();
+ /** @brief Get the value of the initialized property on the host
+ * watchdog
+ *
+ * @return The value of the property
+ */
+ bool getInitialized();
+
/** @brief Sets the value of the initialized property on the host
- * watchdog
+ * watchdog
*
* @param[in] initialized - The new initializedvalue
*/
@@ -79,6 +86,14 @@ class WatchdogService {
/** @brief The name of the mapped host watchdog service */
static ipmi::ServiceCache wd_service;
+ /** @brief Gets the value of the property on the host watchdog
+ *
+ * @param[in] key - The name of the property
+ * @return The value of the property
+ */
+ template <typename T>
+ T getProperty(const std::string& key);
+
/** @brief Sets the value of the property on the host watchdog
*
* @param[in] key - The name of the property
OpenPOWER on IntegriCloud