xref: /openbmc/bmcweb/include/dbus_singleton.hpp (revision 8ece0e45)
1911ac317SEd Tanous #pragma once
21abe55efSEd Tanous #include <sdbusplus/asio/connection.hpp>
3911ac317SEd Tanous 
41abe55efSEd Tanous namespace crow
51abe55efSEd Tanous {
61abe55efSEd Tanous namespace connections
71abe55efSEd Tanous {
86384e323SNan Zhou 
9*8ece0e45SEd Tanous // Initialize before using!
10*8ece0e45SEd Tanous // Please see webserver_main for the example how this variable is initialized,
11cf9e417dSEd Tanous // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
126384e323SNan Zhou extern sdbusplus::asio::connection* systemBus;
13911ac317SEd Tanous 
14aa2e59c1SEd Tanous } // namespace connections
15911ac317SEd Tanous } // namespace crow
16