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