PEL: New D-Bus properties on PEL entry iface
Fill in the 4 newly added properties on the PEL entry D-Bus interface:
- Platform log ID (PLID)
- Deconfig flag from the SRC section
- Guard flag from the SRC section
- Creation timestamp
These were also added to the PELAttributes map in the Repository class
so that each PEL wouldn't have to be reconstructed from a file again
when creating the D-Bus objects.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I7878645f56c634e6111fcecc22ab27673d0c0f5d
diff --git a/extensions/openpower-pels/src.hpp b/extensions/openpower-pels/src.hpp
index 3e6e519..f3ce5cc 100644
--- a/extensions/openpower-pels/src.hpp
+++ b/extensions/openpower-pels/src.hpp
@@ -308,6 +308,18 @@
*/
static uint32_t getProgressCode(std::vector<uint8_t>& rawProgressSRC);
+ /**
+ * @brief Return the value of the passed in error status flag.
+ *
+ * @param[in] flag - The flag
+ *
+ * @return bool - If the flag is set.
+ */
+ bool getErrorStatusFlag(ErrorStatusFlags flag) const
+ {
+ return _hexData[3] & static_cast<uint32_t>(flag);
+ }
+
private:
/**
* @brief Fills in the user defined hex words from the