1 #include "rde/notifier_dbus_handler.hpp"
2 
3 namespace bios_bmc_smm_error_logger
4 {
5 namespace rde
6 {
7 
CperFileNotifierHandler(sdbusplus::bus_t & bus)8 CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus_t& bus) :
9     bus(bus), objManager(bus, CperFileNotifier::cperBasePath)
10 {}
11 
createEntry(const std::string & filePath)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
23