blob: 2448636a6228047117209b1bdd7b8ce1276af3f9 [file] [log] [blame]
Ed Tanous911ac312017-08-15 09:37:42 -07001#pragma once
Ed Tanous1abe55e2018-09-05 08:30:59 -07002#include <sdbusplus/asio/connection.hpp>
Ed Tanous911ac312017-08-15 09:37:42 -07003
Ed Tanous1abe55e2018-09-05 08:30:59 -07004namespace crow
5{
6namespace connections
7{
Nan Zhou6384e322022-06-23 22:28:25 +00008
Ed Tanous8ece0e42024-01-02 13:16:50 -08009// Initialize before using!
10// Please see webserver_main for the example how this variable is initialized,
Ed Tanouscf9e4172022-12-21 09:30:16 -080011// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
Nan Zhou6384e322022-06-23 22:28:25 +000012extern sdbusplus::asio::connection* systemBus;
Ed Tanous911ac312017-08-15 09:37:42 -070013
Ed Tanous1abe55e2018-09-05 08:30:59 -070014} // namespace connections
15} // namespace crow