oem ibm: marker LID validation
This commit adds code for writing marker LID
from Host and also send a PlatformEventMessage
after validation.
This commit also subscribes for the interface added
signal to fetch the new image id and sends the relevant
sensor event to host
Change-Id: I92476beca18e6dd255f372dd82d6eaeca18e282c
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/pldmd/pldmd.cpp b/pldmd/pldmd.cpp
index c657d49..c1c864c 100644
--- a/pldmd/pldmd.cpp
+++ b/pldmd/pldmd.cpp
@@ -202,7 +202,8 @@
std::make_unique<pldm::responder::CodeUpdate>(dbusHandler.get());
codeUpdate->clearDirPath(LID_STAGING_DIR);
oemPlatformHandler = std::make_unique<oem_ibm_platform::Handler>(
- dbusHandler.get(), codeUpdate.get(), sockfd, hostEID, dbusImplReq);
+ dbusHandler.get(), codeUpdate.get(), sockfd, hostEID, dbusImplReq,
+ event);
codeUpdate->setOemPlatformHandler(oemPlatformHandler.get());
invoker.registerHandler(
PLDM_OEM, std::make_unique<oem_ibm::Handler>(oemPlatformHandler.get()));