blob: e6d5e4e8c58a809aefc688998ff555d6904eb7d1 [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 notifierObjs.push_back(std::move(obj));
20 ++nextEntry;
21}
22
23} // namespace rde
24} // namespace bios_bmc_smm_error_logger