Modify D-Bus to using asio server
DBus updates are now using the asio server way.
Tested:
Tested with unit tests and locally on a machine.
Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: I77553bcc3baae70e5d684a62f2c19592ff844665
Signed-off-by: Brandon Kim <brandonkim@google.com>
diff --git a/src/rde/external_storer_file.cpp b/src/rde/external_storer_file.cpp
index 5cc14cf..1ffea44 100644
--- a/src/rde/external_storer_file.cpp
+++ b/src/rde/external_storer_file.cpp
@@ -46,10 +46,11 @@
}
ExternalStorerFileInterface::ExternalStorerFileInterface(
- sdbusplus::bus_t& bus, std::string_view rootPath,
+ const std::shared_ptr<sdbusplus::asio::connection>& conn,
+ std::string_view rootPath,
std::unique_ptr<FileHandlerInterface> fileHandler) :
rootPath(rootPath), fileHandler(std::move(fileHandler)), logServiceId(""),
- cperNotifier(std::make_unique<CperFileNotifierHandler>(bus))
+ cperNotifier(std::make_unique<CperFileNotifierHandler>(conn))
{}
bool ExternalStorerFileInterface::publishJson(std::string_view jsonStr)