blob: 0f4cdaa1f70179140a27f00630840cc7ea08819b [file] [log] [blame]
#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <memory>
namespace
{
std::shared_ptr<boost::asio::io_context> ioCtx;
std::shared_ptr<sdbusplus::asio::connection> sdbusp;
} // namespace
void setIoContext(std::shared_ptr<boost::asio::io_context>& newIo)
{
ioCtx = newIo;
}
std::shared_ptr<boost::asio::io_context> getIoContext()
{
return ioCtx;
}
void setSdBus(std::shared_ptr<sdbusplus::asio::connection>& newBus)
{
sdbusp = newBus;
}
std::shared_ptr<sdbusplus::asio::connection> getSdBus()
{
return sdbusp;
}