libpldm: pdr: add API to remove remote PDRs

Add an API that lets the caller delete all remote PDRs from the BMC's
PDR repository.

The PDR record handles are adjusted in order to
continue to remain sequential, by increments of 1, for the remaining
records.

Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: Icf260f6335fc537dd7bb9a7d148d30ec4345636e
diff --git a/libpldm/pdr.h b/libpldm/pdr.h
index b85bed5..0489814 100644
--- a/libpldm/pdr.h
+++ b/libpldm/pdr.h
@@ -138,6 +138,12 @@
 
 bool pldm_pdr_record_is_remote(const pldm_pdr_record *record);
 
+/** @brief Remove all PDR records that belong to a remote terminus
+ *
+ *  @param[in] repo - opaque pointer acting as a PDR repo handle
+ */
+void pldm_pdr_remove_remote_pdrs(pldm_pdr *repo);
+
 /* ======================= */
 /* FRU Record Set PDR APIs */
 /* ======================= */