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 | |
Patrick Williams | bea36e2 | 2022-07-22 19:26:57 -0500 | [diff] [blame] | 8 | CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus_t& bus) : |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 9 | bus(bus), objManager(bus, CperFileNotifier::cperBasePath) |
| 10 | {} |
| 11 | |
| 12 | void CperFileNotifierHandler::createEntry(const std::string& filePath) |
| 13 | { |
| 14 | auto obj = std::make_unique<CperFileNotifier>(bus, filePath, nextEntry); |
| 15 | // Notify fault log monitor through InterfacesAdded signal. |
| 16 | obj->emit_added(); |
| 17 | notifierObjs.push_back(std::move(obj)); |
| 18 | ++nextEntry; |
| 19 | } |
| 20 | |
| 21 | } // namespace rde |
| 22 | } // namespace bios_bmc_smm_error_logger |