Add power fault check to checkstop handler
If a power fault is being reported during a
checkstop condition we will not call the
analyzer.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I9813a55b80eb1b94c6ad2d5cddb2e56b1daa67f4
diff --git a/util/dbus.hpp b/util/dbus.hpp
index 39041e2..6c1a554 100644
--- a/util/dbus.hpp
+++ b/util/dbus.hpp
@@ -12,7 +12,7 @@
namespace dbus
{
using DBusValue = std::variant<std::string, bool, std::vector<uint8_t>,
- std::vector<std::string>>;
+ std::vector<std::string>, int32_t>;
using DBusProperty = std::string;
using DBusInterface = std::string;
using DBusService = std::string;
@@ -179,5 +179,12 @@
*/
bool getMctpInstance(uint8_t& mctpInstance, uint8_t Eid);
+/**
+ * @brief Determine if power fault was detected
+ *
+ * @return true if power fault or unknown, false otherwise
+ */
+bool powerFault();
+
} // namespace dbus
} // namespace util