bios: Initialise the bios attributes from bios-settings-manager
The bios-settings-manager is persisting the current value for the PLDM
BIOS attributes. The PLDM daemon will lookup the bios-settings-manager
for the current value and create the BIOS attribute value table.
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Change-Id: I6a7a9ff9c3766189e6a64ab88c5c5e438881151f
diff --git a/libpldmresponder/bios_attribute.hpp b/libpldmresponder/bios_attribute.hpp
index d712429..ebdf1dc 100644
--- a/libpldmresponder/bios_attribute.hpp
+++ b/libpldmresponder/bios_attribute.hpp
@@ -57,9 +57,13 @@
* @param[in] stringTable - The string Table
* @param[in,out] attrTable - The attribute table
* @param[in,out] attrValueTable - The attribute value table
+ * @param[in,out] optAttributeValue - init value of the attribute
*/
- virtual void constructEntry(const BIOSStringTable& stringTable,
- Table& attrTable, Table& attrValueTable) = 0;
+ virtual void constructEntry(
+ const BIOSStringTable& stringTable, Table& attrTable,
+ Table& attrValueTable,
+ std::optional<std::variant<int64_t, std::string>> optAttributeValue =
+ std::nullopt) = 0;
/** @brief Method to update the value for an attribute
* @param[in,out] newValue - An attribute value table row with the new