blob: f61354e686bc3415d6751c27935fc7b3445ca002 [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
kasunath3d0cd552022-08-25 20:22:58 -07008CperFileNotifierHandler::CperFileNotifierHandler(
9 const std::shared_ptr<sdbusplus::asio::connection>& conn) :
10 objManager(static_cast<sdbusplus::bus_t&>(*conn),
11 CperFileNotifier::cperBasePath),
12 objServer(conn)
kasunath7cea1b92022-06-14 20:23:27 -070013{}
14
15void CperFileNotifierHandler::createEntry(const std::string& filePath)
16{
kasunath3d0cd552022-08-25 20:22:58 -070017 auto obj =
18 std::make_unique<CperFileNotifier>(objServer, filePath, nextEntry);
kasunath7cea1b92022-06-14 20:23:27 -070019 ++nextEntry;
20}
21
22} // namespace rde
23} // namespace bios_bmc_smm_error_logger