summaryrefslogtreecommitdiffstats
path: root/apphandler.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-03-25 14:17:54 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-04-11 18:20:31 +0000
commit11df4f6906edc0dfb23089a6e297158549c19ebd (patch)
tree8be3cfd12f12bf700ca525f2a5f839135ff655f0 /apphandler.cpp
parentf2587fce3d3c5eb4a5e3127badc4dfa40a08785f (diff)
downloadphosphor-host-ipmid-11df4f6906edc0dfb23089a6e297158549c19ebd.tar.gz
phosphor-host-ipmid-11df4f6906edc0dfb23089a6e297158549c19ebd.zip
rewrite Reset Watchdog Timer command to use new provider API
Modify to use the new provider API. One by one, change calls to remove any legacy API constructs. Tested-by: ipmitool mc watchdog get ipmitool mc watchdog off ipmitool mc watchdog reset Change-Id: If6cd1d921908dc7f5462e99b0098b4897e743ebb Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'apphandler.cpp')
-rw-r--r--apphandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/apphandler.cpp b/apphandler.cpp
index 78ed077..8be092c 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -1035,8 +1035,9 @@ void register_netfn_app_functions()
ipmi::Privilege::User, ipmiAppGetBtCapabilities);
// <Reset Watchdog Timer>
- ipmi_register_callback(NETFUN_APP, IPMI_CMD_RESET_WD, NULL,
- ipmi_app_watchdog_reset, PRIVILEGE_OPERATOR);
+ ipmi::registerHandler(ipmi::prioOpenBmcBase, ipmi::netFnApp,
+ ipmi::app::cmdResetWatchdogTimer,
+ ipmi::Privilege::Operator, ipmiAppResetWatchdogTimer);
// <Set Watchdog Timer>
ipmi_register_callback(NETFUN_APP, IPMI_CMD_SET_WD, NULL,
OpenPOWER on IntegriCloud