xref: /openbmc/bmcweb/include/dbus_singleton.hpp (revision 1b8b02a4)
1 #pragma once
2 #include <sdbusplus/asio/connection.hpp>
3 
4 namespace crow
5 {
6 namespace connections
7 {
8 
9 // Initialze before using!
10 // Please see webserver_main for the example how this variable is initialzed,
11 // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
12 extern sdbusplus::asio::connection* systemBus;
13 
14 } // namespace connections
15 } // namespace crow
16