blob: c7bf3108abdb0988387b21c5828eb5995efb6cd9 [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
8CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus::bus& bus) :
9 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