summaryrefslogtreecommitdiffstats
path: root/app/watchdog.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-10-25 12:16:19 -0700
committerPatrick Venture <venture@google.com>2017-10-25 12:18:40 -0700
commit5e6ac715611ab118d243318ea44523cc67de77c4 (patch)
treed833a57e190903acce594fea64f0a45d44146572 /app/watchdog.hpp
parent5914678ceaa2b070ed67b16f7c8441947f514d4d (diff)
downloadphosphor-host-ipmid-5e6ac715611ab118d243318ea44523cc67de77c4.tar.gz
phosphor-host-ipmid-5e6ac715611ab118d243318ea44523cc67de77c4.zip
watchdog: split out commands
I split out the watchdog command handlers into their own subordinate file from the apphandler. This reduces the size of the contents of the apphandler file, and logically cuts out code into its own files. Change-Id: Idc70acad6c93c12456cc7092786715643c9c1ffb Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'app/watchdog.hpp')
-rw-r--r--app/watchdog.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/watchdog.hpp b/app/watchdog.hpp
new file mode 100644
index 0000000..059a4e7
--- /dev/null
+++ b/app/watchdog.hpp
@@ -0,0 +1,32 @@
+#include "ipmid.hpp"
+
+/** @brief The SET watchdog IPMI command.
+ *
+ * @param[in] netfn
+ * @param[in] cmd
+ * @param[in] request
+ * @param[in,out] response
+ * @param[out] data_len
+ * @param[in] context
+ *
+ * @return IPMI_CC_OK on success, -1 otherwise.
+ */
+ipmi_ret_t ipmi_app_set_watchdog(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);
+
+/** @brief The RESET watchdog IPMI command.
+ *
+ * @param[in] netfn
+ * @param[in] cmd
+ * @param[in] request
+ * @param[in,out] response
+ * @param[out] data_len
+ * @param[in] context
+ *
+ * @return IPMI_CC_OK on success, -1 otherwise.
+ */
+ipmi_ret_t ipmi_app_reset_watchdog(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);
+
OpenPOWER on IntegriCloud