xref: /openbmc/phosphor-net-ipmid/main.hpp (revision 9d9b7638)
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 <cstddef>
9 #include <sdbusplus/asio/connection.hpp>
10 #include <sessions_manager.hpp>
11 #include <tuple>
12 
13 extern std::tuple<session::Manager&, command::Table&, eventloop::EventLoop&,
14                   sol::Manager&>
15     singletonPool;
16 
17 // Select call timeout is set arbitrarily set to 30 sec
18 static constexpr size_t SELECT_CALL_TIMEOUT = 30;
19 static const auto IPMI_STD_PORT = 623;
20 
21 extern sd_bus* bus;
22 
23 std::shared_ptr<sdbusplus::asio::connection> getSdBus();
24