1*7cea1b96Skasunath #include "rde/notifier_dbus_handler.hpp" 2*7cea1b96Skasunath 3*7cea1b96Skasunath namespace bios_bmc_smm_error_logger 4*7cea1b96Skasunath { 5*7cea1b96Skasunath namespace rde 6*7cea1b96Skasunath { 7*7cea1b96Skasunath 8*7cea1b96Skasunath CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus::bus& bus) : 9*7cea1b96Skasunath bus(bus), objManager(bus, CperFileNotifier::cperBasePath) 10*7cea1b96Skasunath {} 11*7cea1b96Skasunath 12*7cea1b96Skasunath void CperFileNotifierHandler::createEntry(const std::string& filePath) 13*7cea1b96Skasunath { 14*7cea1b96Skasunath auto obj = std::make_unique<CperFileNotifier>(bus, filePath, nextEntry); 15*7cea1b96Skasunath // Notify fault log monitor through InterfacesAdded signal. 16*7cea1b96Skasunath obj->emit_added(); 17*7cea1b96Skasunath notifierObjs.push_back(std::move(obj)); 18*7cea1b96Skasunath ++nextEntry; 19*7cea1b96Skasunath } 20*7cea1b96Skasunath 21*7cea1b96Skasunath } // namespace rde 22*7cea1b96Skasunath } // namespace bios_bmc_smm_error_logger 23