platform: Function to send the PDR Repo Change event to Host

The PDR Repository Change Event is sent to host informing that
the PDR repository has changed with either some new records added
or some records could have been deleted or some records could have
been modified.

This commit adds a new function to send the repository change event
to host with the changed record handles.

Change-Id: I95d922b81c79442e026a376697c9a044ebc3b30b
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/libpldmresponder/platform.hpp b/libpldmresponder/platform.hpp
index 8d7a55e..8b9684a 100644
--- a/libpldmresponder/platform.hpp
+++ b/libpldmresponder/platform.hpp
@@ -46,6 +46,8 @@
 using EventMap = std::map<EventType, EventHandlers>;
 using AssociatedEntityMap = std::map<DbusPath, pldm_entity>;
 
+using ChangeEntry = uint32_t;
+
 class Handler : public CmdHandler
 {
   public:
@@ -512,6 +514,17 @@
     /** @brief Method for setEventreceiver */
     void setEventReceiver();
 
+    /* @brief Send a PLDM event to host firmware containing a list of record
+     *        handles of PDRs that the host firmware has to fetch.
+     *
+     * @param[in] pdrRecordHandles - list of PDR record handles
+     * @param[in] eventDataOps - event data operation for PDRRepositoryChgEvent
+     *                           as in DSP0248 SPEC
+     */
+    void sendPDRRepositoryChgEventbyPDRHandles(
+        const std::vector<uint32_t>& pdrRecordHandles,
+        const std::vector<uint8_t>& eventDataOps);
+
   private:
     uint8_t eid;
     InstanceIdDb* instanceIdDb;