bios: delete persisted tables at startup
Leveraging the new registration scheme introduced in the previous
commit, delete persisted BIOS tables at PLDM daemon startup. This lets
us process new (via a firmware update, for eg) BIOS config JSONs.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: I2e7759261e80afb2f0a45d8598c36838ab530d54
diff --git a/libpldmresponder/bios.hpp b/libpldmresponder/bios.hpp
index e9abed2..f9a3eff 100644
--- a/libpldmresponder/bios.hpp
+++ b/libpldmresponder/bios.hpp
@@ -51,17 +51,7 @@
class Handler : public CmdHandler
{
public:
- Handler()
- {
- handlers.emplace(PLDM_GET_DATE_TIME,
- [this](const pldm_msg* request, size_t payloadLength) {
- return this->getDateTime(request, payloadLength);
- });
- handlers.emplace(PLDM_GET_BIOS_TABLE,
- [this](const pldm_msg* request, size_t payloadLength) {
- return this->getBIOSTable(request, payloadLength);
- });
- }
+ Handler();
/** @brief Handler for GetDateTime
*