kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 1 | #include "rde/notifier_dbus_handler.hpp" |
| 2 | |
| 3 | namespace bios_bmc_smm_error_logger |
| 4 | { |
| 5 | namespace rde |
| 6 | { |
| 7 | |
kasunath | 3d0cd55 | 2022-08-25 20:22:58 -0700 | [diff] [blame] | 8 | CperFileNotifierHandler::CperFileNotifierHandler( |
| 9 | const std::shared_ptr<sdbusplus::asio::connection>& conn) : |
| 10 | objManager(static_cast<sdbusplus::bus_t&>(*conn), |
| 11 | CperFileNotifier::cperBasePath), |
| 12 | objServer(conn) |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 13 | {} |
| 14 | |
| 15 | void CperFileNotifierHandler::createEntry(const std::string& filePath) |
| 16 | { |
kasunath | 3d0cd55 | 2022-08-25 20:22:58 -0700 | [diff] [blame] | 17 | auto obj = |
| 18 | std::make_unique<CperFileNotifier>(objServer, filePath, nextEntry); |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 19 | ++nextEntry; |
| 20 | } |
| 21 | |
| 22 | } // namespace rde |
| 23 | } // namespace bios_bmc_smm_error_logger |