fru: Add an API to delete the FRU record from the FRUTable

This method can be used to remove the FRU record entry from
the FRU record set Table when a FRU is removed during the
Concurrent Maintenance Operation of the FRU. The Concurrent
Maintenance Operation is the ability to replace, remove, or
update a FRU while the system remains operational, without
requiring a full system shutdown or reboot.

Tested:
Removed a Fan FRU from the system - the FRU record is deleted
and verified that the table is updated.

pldmd[940]: Removing Individual FRU [ /xyz/openbmc_project/inventory
/system/chassis/motherboard/fan0 ] with entityid [ 93, 1, 3 ]
pldmd[940]: record is deleted: numRecs before deletion is 207
pldmd[940]: record is deleted: numRecs after deletion is 206
pldmd[940]: Table updated

Change-Id: I3ae9f87fe1afe81c3a3925c24583a622791c781a
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/libpldmresponder/fru.hpp b/libpldmresponder/fru.hpp
index d4e0ff4..6586fad 100644
--- a/libpldmresponder/fru.hpp
+++ b/libpldmresponder/fru.hpp
@@ -249,6 +249,13 @@
                          const fru_parser::FruRecordInfos& recordInfos,
                          const pldm_entity& entity);
 
+    /** @brief Deletes a FRU record from record set table.
+     *  @param[in] rsi - the FRU Record Set Identifier
+     *
+     *  @return
+     */
+    void deleteFRURecord(uint16_t rsi);
+
     /** @brief Associate sensor/effecter to FRU entity
      */
     dbus::AssociatedEntityMap associatedEntityMap;