blob: c7bf3108abdb0988387b21c5828eb5995efb6cd9 [file] [log] [blame]
#include "rde/notifier_dbus_handler.hpp"
namespace bios_bmc_smm_error_logger
{
namespace rde
{
CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus::bus& bus) :
bus(bus), objManager(bus, CperFileNotifier::cperBasePath)
{}
void CperFileNotifierHandler::createEntry(const std::string& filePath)
{
auto obj = std::make_unique<CperFileNotifier>(bus, filePath, nextEntry);
// Notify fault log monitor through InterfacesAdded signal.
obj->emit_added();
notifierObjs.push_back(std::move(obj));
++nextEntry;
}
} // namespace rde
} // namespace bios_bmc_smm_error_logger