Tom Joseph | e6361a2 | 2016-08-10 06:56:25 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 3 | #include <boost/asio/io_context.hpp> |
George Liu | bc8958f | 2022-07-04 09:29:49 +0800 | [diff] [blame] | 4 | #include <sdbusplus/asio/connection.hpp> |
| 5 | |
Andrew Geissler | 9d9b763 | 2020-05-17 09:18:05 -0500 | [diff] [blame] | 6 | #include <cstddef> |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 7 | #include <memory> |
Tom Joseph | e6361a2 | 2016-08-10 06:56:25 -0500 | [diff] [blame] | 8 | |
Gunnar Mills | 541aee7 | 2017-10-25 14:47:10 -0500 | [diff] [blame] | 9 | // Select call timeout is set arbitrarily set to 30 sec |
Tom Joseph | e6361a2 | 2016-08-10 06:56:25 -0500 | [diff] [blame] | 10 | static constexpr size_t SELECT_CALL_TIMEOUT = 30; |
| 11 | static const auto IPMI_STD_PORT = 623; |
Tom Joseph | 52f53d7 | 2017-03-14 15:20:19 +0530 | [diff] [blame] | 12 | |
| 13 | extern sd_bus* bus; |
Vernon Mauery | d0062ed | 2018-10-25 09:36:06 -0700 | [diff] [blame] | 14 | |
Vernon Mauery | 7b98c07 | 2018-11-01 15:52:26 -0700 | [diff] [blame] | 15 | std::shared_ptr<sdbusplus::asio::connection> getSdBus(); |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 16 | std::shared_ptr<boost::asio::io_context> getIo(); |