summaryrefslogtreecommitdiff
path: root/include/dbus_singleton.hpp
blob: 2465c01de679b8715812b290db57f5e478f6d267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#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