From de14a027c06d93dadf05322529bec9d83f4cd181 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 9 Feb 2018 16:11:18 -0800 Subject: watchdog: Implement initialized using the new dbus interface This makes it possible for the phosphor-host-ipmi or any other watchdog managing daemon to report to the caller that the watchdog was not configured if the phosphor-watchdog daemon restarts for any reason. Change-Id: Iae3a8554c2f5d1cb89368f3ce14b3d44922599c0 Signed-off-by: William A. Kennington III --- app/watchdog_service.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/watchdog_service.hpp') diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp index 4590e31..1d5ffb8 100644 --- a/app/watchdog_service.hpp +++ b/app/watchdog_service.hpp @@ -14,6 +14,7 @@ class WatchdogService { * watchdog service. */ struct Properties { + bool initialized; bool enabled; uint64_t interval; uint64_t timeRemaining; @@ -26,6 +27,13 @@ class WatchdogService { */ Properties getProperties(); + /** @brief Sets the value of the initialized property on the host + * watchdog + * + * @param[in] initialized - The new initializedvalue + */ + void setInitialized(bool initialized); + /** @brief Sets the value of the enabled property on the host watchdog * * @param[in] enabled - The new enabled value -- cgit v1.2.1