platform-mc: Support multi-handlers for polled events
platform-mc only supports one event handler for the polled events.
Update the code to allow multiple event handlers.
Change-Id: Icfb531ce89a49bb417ca94bd608442f9323810b4
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/oem/ampere/oem_ampere.hpp b/oem/ampere/oem_ampere.hpp
index 8fb926e..d054175 100644
--- a/oem/ampere/oem_ampere.hpp
+++ b/oem/ampere/oem_ampere.hpp
@@ -101,11 +101,11 @@
/* Support handle the polled event with Ampere OEM CPER event class */
platformManager->registerPolledEventHandler(
0xFA,
- [platformManager](pldm_tid_t tid, uint16_t eventId,
- const uint8_t* eventData, size_t eventDataSize) {
+ {[platformManager](pldm_tid_t tid, uint16_t eventId,
+ const uint8_t* eventData, size_t eventDataSize) {
return platformManager->handlePolledCperEvent(
tid, eventId, eventData, eventDataSize);
- });
+ }});
}
private: