summaryrefslogtreecommitdiff
path: root/include/dbus_singleton.hpp
blob: 2448636a6228047117209b1bdd7b8ce1276af3f9 (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
{

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

} // namespace connections
} // namespace crow