blob: 56393426d10e6e31de6c64b2d4f9a72f260197c6 [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 Maueryd0062ed2018-10-25 09:36:06 -07008#include <sdbusplus/bus.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
22std::shared_ptr<sdbusplus::bus::bus> getSdBus();