pldm_events: Implement support for state sensorEvents

PLDM supports platform event message by which events can be generated
by a PLDM entity and can be processed by event receiver like BMC. This
patch adds support for remote state sensors which sends PlatformEventMessage
command with sensorEvent type. The sensor is mapped to a D-Bus property
and the eventState is mapped to a D-Bus property value.

Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Change-Id: I50dea23eccbdf29ad1b4cf2c9ab5700d74c12c68
diff --git a/test/event_jsons/malformed1/event_state.json b/test/event_jsons/malformed1/event_state.json
new file mode 100644
index 0000000..29f9b04
--- /dev/null
+++ b/test/event_jsons/malformed1/event_state.json
@@ -0,0 +1,26 @@
+{

+    "entries": [

+        {

+            "containerID": 1,

+            "entityType": 64,

+            "entityInstance": 1,

+            "sensorOffset": 1,

+            "event_states": [

+                0,

+                1,

+                2

+            ],

+            "dbus": {

+                "object_path": "/xyz/abc/def",

+                "interface": "xyz.openbmc_project.example1.value",

+                "property_name": "value1",

+                "property_type": "string",

+                "property_values": [

+                    "xyz.openbmc_project.State.Normal",

+                    "xyz.openbmc_project.State.Critical",

+                    "xyz.openbmc_project.State.Fatal"

+                ]

+            }

+        }

+    ]

+}