blob: 7c78554dd58bedf4ae439a129cef3d4deb96a3f8 [file] [log] [blame]
Tom Josephe6361a22016-08-10 06:56:25 -05001#pragma once
2
Vernon Mauery9e801a22018-10-12 13:20:49 -07003#include "command/guid.hpp"
4#include "sd_event_loop.hpp"
5#include "sol/sol_manager.hpp"
Tom Josephe6361a22016-08-10 06:56:25 -05006
7#include <command_table.hpp>
Andrew Geissler9d9b7632020-05-17 09:18:05 -05008#include <cstddef>
Vernon Mauery7b98c072018-11-01 15:52:26 -07009#include <sdbusplus/asio/connection.hpp>
Tom Josephe6361a22016-08-10 06:56:25 -050010#include <sessions_manager.hpp>
Vernon Mauery9e801a22018-10-12 13:20:49 -070011#include <tuple>
Tom Josephe6361a22016-08-10 06:56:25 -050012
Vernon Mauery9e801a22018-10-12 13:20:49 -070013extern std::tuple<session::Manager&, command::Table&, eventloop::EventLoop&,
14 sol::Manager&>
15 singletonPool;
Tom Josephe6361a22016-08-10 06:56:25 -050016
Gunnar Mills541aee72017-10-25 14:47:10 -050017// Select call timeout is set arbitrarily set to 30 sec
Tom Josephe6361a22016-08-10 06:56:25 -050018static constexpr size_t SELECT_CALL_TIMEOUT = 30;
19static const auto IPMI_STD_PORT = 623;
Tom Joseph52f53d72017-03-14 15:20:19 +053020
21extern sd_bus* bus;
Vernon Maueryd0062ed2018-10-25 09:36:06 -070022
Vernon Mauery7b98c072018-11-01 15:52:26 -070023std::shared_ptr<sdbusplus::asio::connection> getSdBus();