Add safe mode to user interface
putting in code that puts safe mode onto dbus.
Tested: inject error that puts in safe mode, dbus CMD
to read dbus safeMode.
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
Change-Id: I48c5b41a48d0883a8d1e2916da8725391a7bcbc2
diff --git a/occ_manager.hpp b/occ_manager.hpp
index 65d7545..d0b01b3 100644
--- a/occ_manager.hpp
+++ b/occ_manager.hpp
@@ -95,6 +95,8 @@
std::placeholders::_1, std::placeholders::_2),
std::bind(std::mem_fn(&Manager::sbeHRESETResult), this,
std::placeholders::_1, std::placeholders::_2),
+ std::bind(std::mem_fn(&Manager::updateOccSafeMode), this,
+ std::placeholders::_1),
event))
#endif
#ifdef POWER10
@@ -268,6 +270,11 @@
*/
bool updateOCCActive(instanceID instance, bool status);
+ /** @brief Callback handler invoked by the PLDM event handler when mode of
+ * the OCC SAFE MODE is inacted or cleared.
+ */
+ void updateOccSafeMode(bool safeState);
+
/** @brief Callback handler invoked by PLDM sensor change when
* the HRESET succeeds or fails.
*