blob: 6aa3a3f44c23a38dea28997e700ced0811091467 [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>
Vernon Mauery7b98c072018-11-01 15:52:26 -07008#include <sdbusplus/asio/connection.hpp>
Tom Josephe6361a22016-08-10 06:56:25 -05009#include <sessions_manager.hpp>
Vernon Mauery9e801a22018-10-12 13:20:49 -070010#include <tuple>
Tom Josephe6361a22016-08-10 06:56:25 -050011
Vernon Mauery9e801a22018-10-12 13:20:49 -070012extern std::tuple<session::Manager&, command::Table&, eventloop::EventLoop&,
13 sol::Manager&>
14 singletonPool;
Tom Josephe6361a22016-08-10 06:56:25 -050015
Gunnar Mills541aee72017-10-25 14:47:10 -050016// Select call timeout is set arbitrarily set to 30 sec
Tom Josephe6361a22016-08-10 06:56:25 -050017static constexpr size_t SELECT_CALL_TIMEOUT = 30;
18static const auto IPMI_STD_PORT = 623;
Tom Joseph52f53d72017-03-14 15:20:19 +053019
20extern sd_bus* bus;
Vernon Maueryd0062ed2018-10-25 09:36:06 -070021
Vernon Mauery7b98c072018-11-01 15:52:26 -070022std::shared_ptr<sdbusplus::asio::connection> getSdBus();