state-set: Add the enum for Operational Stress Status state
As per the spec DSP0249 the PLDM state set Operational Stress Status
[Set ID: 9] can have two enumeration values defined. This commit
adds the enum for the same.
Change-Id: I37962d53c8baf48d0af7beb5ea891c0d2350f4c2
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ad06246..033528a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -45,6 +45,15 @@
1. requester: Fix response buffer cast in pldm_send_recv()
2. pdr: Hoist record handle overflow test to avoid memory leak
+### Deprecated
+
+1. state-set: Enum pldm_state_set_operational_fault_status_values
+
+ The enum operational_fault_status is defined with wrong members and will
+ eventually be replaced with the correct members. Any uses of
+ pldm_state_set_operational_fault_status_values members should move to
+ equivalent pldm_state_set_operational_stress_status_values members if needed.
+
## [0.4.0] - 2023-07-14
### Added
diff --git a/include/libpldm/state_set.h b/include/libpldm/state_set.h
index 38f5aa1..0e5061c 100644
--- a/include/libpldm/state_set.h
+++ b/include/libpldm/state_set.h
@@ -156,6 +156,13 @@
PLDM_STATE_SET_OPERATIONAL_FAULT_STATUS_STRESSED = 2,
};
+/* @brief List of states for the Operational Stress status (ID 9).
+ */
+enum pldm_state_set_operational_stress_status_values {
+ PLDM_STATE_SET_OPERATIONAL_STRESS_STATUS_NORMAL = 1,
+ PLDM_STATE_SET_OPERATIONAL_STRESS_STATUS_STRESSED = 2,
+};
+
/* @brief List of states for the Operational Running Status state set (ID 11).
*/
enum pldm_state_set_operational_running_status_values {