sdbusplus: avoid deprecated phosphor::Timer
sdbusplus had an older type named `phosphor::Timer` which was
recently renamed to `sdbusplus::Timer`. Update the code to use
the new type alias.
Change-Id: I5b913ac29d20b595a1bcb58e2fc5b1e10650a05d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/ssifbridged.cpp b/ssifbridged.cpp
index 7ed8c66..4ab1197 100644
--- a/ssifbridged.cpp
+++ b/ssifbridged.cpp
@@ -90,7 +90,7 @@
int numberOfReqNotRsp;
};
-std::unique_ptr<phosphor::Timer> rspTimer __attribute__((init_priority(101)));
+std::unique_ptr<sdbusplus::Timer> rspTimer __attribute__((init_priority(101)));
std::unique_ptr<SsifChannel> ssifchannel = nullptr;
SsifChannel::SsifChannel(std::shared_ptr<boost::asio::io_context>& io,
@@ -200,7 +200,7 @@
{
if (!rspTimer)
{
- rspTimer = std::make_unique<phosphor::Timer>(rspTimerHandler);
+ rspTimer = std::make_unique<sdbusplus::Timer>(rspTimerHandler);
}
}
@@ -377,10 +377,10 @@
sd_bus* dbus;
sd_bus_default_system(&dbus);
- /* This might be a phosphor::Timer bug, without timer t2, rspTimer
+ /* This might be a sdbusplus::Timer bug, without timer t2, rspTimer
* will not work
*/
- phosphor::Timer t2([]() { ; });
+ sdbusplus::Timer t2([]() { ; });
t2.start(std::chrono::microseconds(500000), true);
auto bus = std::make_shared<sdbusplus::asio::connection>(*io, dbus);
bus->request_name(ssifBus);