pldmd.cpp (77e6fe7ae064915e73760a94ae2c674bc6d3ef8a) | pldmd.cpp (9fc7912818a9fb62af1b7dfca6bd98a5f5377ea4) |
---|---|
1 2#include "common/flight_recorder.hpp" 3#include "common/instance_id.hpp" 4#include "common/transport.hpp" 5#include "common/utils.hpp" 6#include "dbus_impl_requester.hpp" 7#include "fw-update/manager.hpp" 8#include "invoker.hpp" --- 261 unchanged lines hidden (view full) --- 270 // FRU table is built lazily when a FRU command or Get PDR command is 271 // handled. To enable building FRU table, the FRU handler is passed to the 272 // Platform handler. 273 274 std::unique_ptr<platform_mc::Manager> platformManager = 275 std::make_unique<platform_mc::Manager>(event, reqHandler, instanceIdDb); 276 277 pldm::responder::platform::EventMap addOnEventHandlers{ | 1 2#include "common/flight_recorder.hpp" 3#include "common/instance_id.hpp" 4#include "common/transport.hpp" 5#include "common/utils.hpp" 6#include "dbus_impl_requester.hpp" 7#include "fw-update/manager.hpp" 8#include "invoker.hpp" --- 261 unchanged lines hidden (view full) --- 270 // FRU table is built lazily when a FRU command or Get PDR command is 271 // handled. To enable building FRU table, the FRU handler is passed to the 272 // Platform handler. 273 274 std::unique_ptr<platform_mc::Manager> platformManager = 275 std::make_unique<platform_mc::Manager>(event, reqHandler, instanceIdDb); 276 277 pldm::responder::platform::EventMap addOnEventHandlers{ |
278 {PLDM_CPER_EVENT, 279 {[&platformManager](const pldm_msg* request, size_t payloadLength, 280 uint8_t formatVersion, uint8_t tid, 281 size_t eventDataOffset) { 282 return platformManager->handleCperEvent( 283 request, payloadLength, formatVersion, tid, eventDataOffset); 284 }}}, |
|
278 {PLDM_SENSOR_EVENT, 279 {[&platformManager](const pldm_msg* request, size_t payloadLength, 280 uint8_t formatVersion, uint8_t tid, 281 size_t eventDataOffset) { 282 return platformManager->handleSensorEvent( 283 request, payloadLength, formatVersion, tid, eventDataOffset); 284 }}}}; 285 --- 137 unchanged lines hidden --- | 285 {PLDM_SENSOR_EVENT, 286 {[&platformManager](const pldm_msg* request, size_t payloadLength, 287 uint8_t formatVersion, uint8_t tid, 288 size_t eventDataOffset) { 289 return platformManager->handleSensorEvent( 290 request, payloadLength, formatVersion, tid, eventDataOffset); 291 }}}}; 292 --- 137 unchanged lines hidden --- |