xref: /openbmc/bmcweb/include/dbus_singleton.hpp (revision d2ec1bd7a0267cfd259615b979a4a2119f09a7d6)
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
3 #pragma once
4 #include <sdbusplus/asio/connection.hpp>
5 
6 namespace crow
7 {
8 namespace connections
9 {
10 
11 // Initialize before using!
12 // Please see webserver_main for the example how this variable is initialized,
13 // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
14 extern sdbusplus::asio::connection* systemBus;
15 
16 } // namespace connections
17 } // namespace crow
18