diff options
author | William A. Kennington III <wak@google.com> | 2018-02-09 15:23:53 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-02-15 12:29:37 -0800 |
commit | 61d5f7bcd892b9f546ad5b19ad96238110602743 (patch) | |
tree | f2ae22a7015499fbaf0407213f4e851ebde084a6 /app/watchdog.hpp | |
parent | ce6a795a8ecc7755290ea4bcef4bf3340a331b49 (diff) | |
download | phosphor-host-ipmid-61d5f7bcd892b9f546ad5b19ad96238110602743.tar.gz phosphor-host-ipmid-61d5f7bcd892b9f546ad5b19ad96238110602743.zip |
watchdog: Reorganize header and function names
This is a refactoring of names + header cleanup and has no functional
change.
Change-Id: Ie90fded80b6a26927f56bb342993193530b8b8ef
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'app/watchdog.hpp')
-rw-r--r-- | app/watchdog.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/watchdog.hpp b/app/watchdog.hpp index f434493..c09bd1c 100644 --- a/app/watchdog.hpp +++ b/app/watchdog.hpp @@ -1,6 +1,8 @@ -#include "ipmid.hpp" +#pragma once -/** @brief The SET watchdog IPMI command. +#include "host-ipmid/ipmid-api.h" + +/** @brief The RESET watchdog IPMI command. * * @param[in] netfn * @param[in] cmd @@ -9,9 +11,9 @@ * @param[out] data_len * @param[in] context * - * @return IPMI_CC_OK on success, -1 otherwise. + * @return IPMI_CC_OK on success, an IPMI error code otherwise. */ -ipmi_ret_t ipmi_app_set_watchdog( +ipmi_ret_t ipmi_app_watchdog_reset( ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t request, @@ -19,7 +21,7 @@ ipmi_ret_t ipmi_app_set_watchdog( ipmi_data_len_t data_len, ipmi_context_t context); -/** @brief The RESET watchdog IPMI command. +/** @brief The SET watchdog IPMI command. * * @param[in] netfn * @param[in] cmd @@ -28,13 +30,12 @@ ipmi_ret_t ipmi_app_set_watchdog( * @param[out] data_len * @param[in] context * - * @return IPMI_CC_OK on success, -1 otherwise. + * @return IPMI_CC_OK on success, an IPMI error code otherwise. */ -ipmi_ret_t ipmi_app_reset_watchdog( +ipmi_ret_t ipmi_app_watchdog_set( ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t request, ipmi_response_t response, ipmi_data_len_t data_len, ipmi_context_t context); - |