Implement the PLDM.Event interface

This commit implements a DBus interface defined at
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/33552

When the PLDM daemon receives a state sensor EventMessages, it emits the
PLDM.Event.StateSensorEvent signal (with TID, sensorID, sensorOffset,
eventState, previousEventState as the signal data).
https://gerrit.openbmc-project.xyz/c/openbmc/pldm/+/33553

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I64f4b08cf754ff4af74f8c6137ff8de41ccf89f7
diff --git a/pldmd/pldmd.cpp b/pldmd/pldmd.cpp
index 71f1cfb..5215589 100644
--- a/pldmd/pldmd.cpp
+++ b/pldmd/pldmd.cpp
@@ -13,6 +13,7 @@
 #include "libpldmresponder/bios.hpp"
 #include "libpldmresponder/fru.hpp"
 #include "libpldmresponder/platform.hpp"
+#include "xyz/openbmc_project/PLDM/Event/server.hpp"
 
 #include <err.h>
 #include <getopt.h>
@@ -232,6 +233,8 @@
     }
 
     dbus_api::Pdr dbusImplPdr(bus, "/xyz/openbmc_project/pldm", pdrRepo.get());
+    sdbusplus::xyz::openbmc_project::PLDM::server::Event dbusImplEvent(
+        bus, "/xyz/openbmc_project/pldm");
     auto callback = [verbose, &invoker, &dbusImplReq](IO& /*io*/, int fd,
                                                       uint32_t revents) {
         if (!(revents & EPOLLIN))