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/platform-mc/manager.hpp b/platform-mc/manager.hpp
index 7def32b..29d924a 100644
--- a/platform-mc/manager.hpp
+++ b/platform-mc/manager.hpp
@@ -204,10 +204,9 @@
*
*/
void registerPolledEventHandler(uint8_t eventClass,
- pldm::platform_mc::HandlerFunc handlerFunc)
+ pldm::platform_mc::HandlerFuncs handlers)
{
- eventManager.registerPolledEventHandler(eventClass,
- std::move(handlerFunc));
+ eventManager.registerPolledEventHandler(eventClass, handlers);
}
private: