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