blob: a5be04c41147e52484f1a9a2c3a19f0e4d6f39f7 [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>
George Liubc8958f2022-07-04 09:29:49 +08004#include <sdbusplus/asio/connection.hpp>
5
Andrew Geissler9d9b7632020-05-17 09:18:05 -05006#include <cstddef>
Vernon Mauery2085ae02021-06-10 11:51:00 -07007#include <memory>
Tom Josephe6361a22016-08-10 06:56:25 -05008
Gunnar Mills541aee72017-10-25 14:47:10 -05009// Select call timeout is set arbitrarily set to 30 sec
Tom Josephe6361a22016-08-10 06:56:25 -050010static constexpr size_t SELECT_CALL_TIMEOUT = 30;
11static const auto IPMI_STD_PORT = 623;
Tom Joseph52f53d72017-03-14 15:20:19 +053012
13extern sd_bus* bus;
Vernon Maueryd0062ed2018-10-25 09:36:06 -070014
Vernon Mauery7b98c072018-11-01 15:52:26 -070015std::shared_ptr<sdbusplus::asio::connection> getSdBus();
Vernon Mauery2085ae02021-06-10 11:51:00 -070016std::shared_ptr<boost::asio::io_context> getIo();