commit | adbe17260a69ea5f7639e9d760830bdcb6996e6c | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Sat May 09 19:20:19 2020 +0800 |
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | Thu Jul 30 07:02:11 2020 -0500 |
tree | 71b7206d2d1b2594feb6258857eaab6315fe736d | |
parent | a929dac17d1c30a18ee6edefa9dfdaf4803c9b2c [diff] [blame] |
Add parsing JSON for State Sensor PDR According to spec DSP0248_1.2.0: 28.6 and sensor_pdr.json, parse JSON and generate PDR structure. Tested with JSON file: https://gist.github.com/lxwinspur/6a40abea7330c25e4d49826e890c4be9 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I654913b6fa07f34f405f7dd41a5f1ac0ae2706fb
diff --git a/libpldmresponder/pdr_utils.hpp b/libpldmresponder/pdr_utils.hpp index 2843ee6..c463f1f 100644 --- a/libpldmresponder/pdr_utils.hpp +++ b/libpldmresponder/pdr_utils.hpp
@@ -30,6 +30,15 @@ namespace pdr_utils { +/** @struct Type ID associated with pdr + * + */ +enum class TypeId +{ + PLDM_EFFECTER_ID, + PLDM_SENSOR_ID +}; + /** @struct PdrEntry * PDR entry structure that acts as a PDR record structure in the PDR * repository to handle PDR APIs.