diff options
Diffstat (limited to 'app/watchdog_service.hpp')
-rw-r--r-- | app/watchdog_service.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 |