summaryrefslogtreecommitdiff
path: root/include/dbus_singleton.hpp
blob: 67f57b7104069eb1bc478dc7b22167b5ea3677ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include <sdbusplus/asio/connection.hpp>

namespace crow
{
namespace connections
{

// Initialze before using!
// Please see webserver_main for the example how this variable is initialzed,
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
extern sdbusplus::asio::connection* systemBus;

} // namespace connections
} // namespace crow