platform: Add alias members to PDRRepoChgEvent
Alias constants are added in pldmPDRRepositoryChgEvent
changeRecord event data operation enum. This is done
to give more consistent names to the enum constants.
The older version of these duplicate constants will be
removed after backward compatibility is taken care.
See CHANGELOG.md for more information on this enum.
Change-Id: Ie30f9034d4ca12abd5d2a4b3e584e0f63f55e56b
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>
diff --git a/include/libpldm/platform.h b/include/libpldm/platform.h
index 385e237..1b39823 100644
--- a/include/libpldm/platform.h
+++ b/include/libpldm/platform.h
@@ -263,13 +263,18 @@
};
/** @brief PLDM pldmPDRRepositoryChgEvent class changeRecord format
- * eventDataOperation
+ * eventDataOperation. See CHANGELOG.md for info on the alias members.
*/
enum pldm_pdr_repository_chg_event_change_record_event_data_operation {
- PLDM_REFRESH_ALL_RECORDS,
- PLDM_RECORDS_DELETED,
- PLDM_RECORDS_ADDED,
- PLDM_RECORDS_MODIFIED
+ PLDM_REFRESH_ALL_RECORDS = 0,
+ PLDM_RECORDS_DELETED = 1,
+ PLDM_RECORDS_ADDED = 2,
+ PLDM_RECORDS_MODIFIED = 3,
+
+ PLDM_PDR_RECORDS_REFRESH_ALL = 0,
+ PLDM_PDR_RECORDS_DELETED = 1,
+ PLDM_PDR_RECORDS_ADDED = 2,
+ PLDM_PDR_RECORDS_MODIFIED = 3
};
/** @brief PLDM NumericSensorStatePresentReading data type