blob: fa7584b445ccce0523a687d29fa2580c8cee1b1d [file] [log] [blame]
Tom Josephe6361a22016-08-10 06:56:25 -05001#pragma once
2
Vernon Mauery2085ae02021-06-10 11:51:00 -07003#include <boost/asio/io_context.hpp>
Andrew Geissler9d9b7632020-05-17 09:18:05 -05004#include <cstddef>
Vernon Mauery2085ae02021-06-10 11:51:00 -07005#include <memory>
Vernon Mauery7b98c072018-11-01 15:52:26 -07006#include <sdbusplus/asio/connection.hpp>
Tom Josephe6361a22016-08-10 06:56:25 -05007
Gunnar Mills541aee72017-10-25 14:47:10 -05008// Select call timeout is set arbitrarily set to 30 sec
Tom Josephe6361a22016-08-10 06:56:25 -05009static constexpr size_t SELECT_CALL_TIMEOUT = 30;
10static const auto IPMI_STD_PORT = 623;
Tom Joseph52f53d72017-03-14 15:20:19 +053011
12extern sd_bus* bus;
Vernon Maueryd0062ed2018-10-25 09:36:06 -070013
Vernon Mauery7b98c072018-11-01 15:52:26 -070014std::shared_ptr<sdbusplus::asio::connection> getSdBus();
Vernon Mauery2085ae02021-06-10 11:51:00 -070015std::shared_ptr<boost::asio::io_context> getIo();