Change io_service to io_context
This was renamed a while back in boost to be compliant with the
std::executors proposal.
Change-Id: I2bda7bf0e3e010a4162073b579bb744901597062
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/ipmbbridged.cpp b/ipmbbridged.cpp
index 023cf35..26864b8 100644
--- a/ipmbbridged.cpp
+++ b/ipmbbridged.cpp
@@ -19,6 +19,7 @@
#include "ipmbutils.hpp"
#include <boost/algorithm/string/replace.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/write.hpp>
#include <filesystem>
#include <fstream>
@@ -34,7 +35,7 @@
static constexpr const char *ipmbObj = "/xyz/openbmc_project/Ipmi/Channel/Ipmb";
static constexpr const char *ipmbDbusIntf = "org.openbmc.Ipmb";
-boost::asio::io_service io;
+boost::asio::io_context io;
auto conn = std::make_shared<sdbusplus::asio::connection>(io);
static std::list<IpmbChannel> ipmbChannels;
@@ -520,7 +521,7 @@
});
}
-IpmbChannel::IpmbChannel(boost::asio::io_service &io,
+IpmbChannel::IpmbChannel(boost::asio::io_context &io,
uint8_t ipmbBmcSlaveAddress,
uint8_t ipmbRqSlaveAddress, uint8_t channelIdx,
std::shared_ptr<IpmbCommandFilter> commandFilter) :
diff --git a/ipmbbridged.hpp b/ipmbbridged.hpp
index 052c193..f13ec8f 100644
--- a/ipmbbridged.hpp
+++ b/ipmbbridged.hpp
@@ -15,7 +15,7 @@
#include "ipmbdefines.hpp"
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/container/flat_set.hpp>
#include <optional>
@@ -261,7 +261,7 @@
class IpmbChannel
{
public:
- IpmbChannel(boost::asio::io_service &io, uint8_t ipmbBmcSlaveAddress,
+ IpmbChannel(boost::asio::io_context &io, uint8_t ipmbBmcSlaveAddress,
uint8_t ipmbRqSlaveAddress, uint8_t channelIdx,
std::shared_ptr<IpmbCommandFilter> commandFilter);