summaryrefslogtreecommitdiffstats
path: root/main.hpp
blob: 56393426d10e6e31de6c64b2d4f9a72f260197c6 (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/bus.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::bus::bus> getSdBus();
OpenPOWER on IntegriCloud