blob: 2151925543256ea37eab176ae0d1c275470b1e13 [file] [log] [blame]
kasunath7cea1b92022-06-14 20:23:27 -07001#include "rde/notifier_dbus_handler.hpp"
2
3namespace bios_bmc_smm_error_logger
4{
5namespace rde
6{
7
Patrick Williamsbea36e22022-07-22 19:26:57 -05008CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus_t& bus) :
kasunath7cea1b92022-06-14 20:23:27 -07009 bus(bus), objManager(bus, CperFileNotifier::cperBasePath)
10{}
11
12void 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