From 118907ed5aff8ad5037f98bf8699c5105781e4dd Mon Sep 17 00:00:00 2001 From: Yong Li Date: Fri, 11 Jan 2019 17:36:17 +0800 Subject: Add timer use field support in watchdog command Tested: ipmitool raw 0x06 0x24 1 0 0 0 0 0 ipmitool mc watchdog get Change-Id: Iaffd6622821d33183a52f54a4e2e52a36aa17dde Signed-off-by: Yong Li --- app/watchdog_service.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/watchdog_service.hpp') diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp index 8056fb7..75afc1e 100644 --- a/app/watchdog_service.hpp +++ b/app/watchdog_service.hpp @@ -16,6 +16,8 @@ class WatchdogService using Action = sdbusplus::xyz::openbmc_project::State::server::Watchdog::Action; + using TimerUse = + sdbusplus::xyz::openbmc_project::State::server::Watchdog::TimerUse; /** @brief Resets the time remaining on the watchdog. * Equivalent to setTimeRemaining(getInterval()). @@ -33,6 +35,7 @@ class WatchdogService bool initialized; bool enabled; Action expireAction; + TimerUse timerUse; uint64_t interval; uint64_t timeRemaining; }; @@ -70,6 +73,12 @@ class WatchdogService */ void setExpireAction(Action expireAction); + /** @brief Sets the value of the timerUse property on the host watchdog + * + * @param[in] timerUse - The new timerUse value + */ + void setTimerUse(TimerUse timerUse); + /** @brief Sets the value of the interval property on the host watchdog * * @param[in] interval - The new interval value -- cgit v1.2.1