xref: /openbmc/phosphor-net-ipmid/main.hpp (revision ddba9d15)
1 #pragma once
2 
3 #include "command/guid.hpp"
4 #include "sd_event_loop.hpp"
5 #include "sol/sol_manager.hpp"
6 
7 #include <command_table.hpp>
8 #include <sdbusplus/asio/connection.hpp>
9 #include <sessions_manager.hpp>
10 #include <tuple>
11 
12 extern std::tuple<session::Manager&, command::Table&, eventloop::EventLoop&,
13                   sol::Manager&>
14     singletonPool;
15 
16 // Select call timeout is set arbitrarily set to 30 sec
17 static constexpr size_t SELECT_CALL_TIMEOUT = 30;
18 static const auto IPMI_STD_PORT = 623;
19 
20 extern sd_bus* bus;
21 
22 std::shared_ptr<sdbusplus::asio::connection> getSdBus();
23