summaryrefslogtreecommitdiffstats
path: root/main.hpp
blob: 6aa3a3f44c23a38dea28997e700ced0811091467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "command/guid.hpp"
#include "sd_event_loop.hpp"
#include "sol/sol_manager.hpp"

#include <command_table.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <sessions_manager.hpp>
#include <tuple>

extern std::tuple<session::Manager&, command::Table&, eventloop::EventLoop&,
                  sol::Manager&>
    singletonPool;

// Select call timeout is set arbitrarily set to 30 sec
static constexpr size_t SELECT_CALL_TIMEOUT = 30;
static const auto IPMI_STD_PORT = 623;

extern sd_bus* bus;

std::shared_ptr<sdbusplus::asio::connection> getSdBus();
OpenPOWER on IntegriCloud