blob: f9b50b078dd39437516e60e80aa334269ac714bc [file] [log] [blame]
Ed Tanous911ac312017-08-15 09:37:42 -07001#pragma once
Nan Zhou6384e322022-06-23 22:28:25 +00002#include <boost/asio/io_context.hpp>
Ed Tanous1abe55e2018-09-05 08:30:59 -07003#include <sdbusplus/asio/connection.hpp>
Ed Tanous911ac312017-08-15 09:37:42 -07004
Ed Tanous1abe55e2018-09-05 08:30:59 -07005namespace crow
6{
7namespace connections
8{
Nan Zhou6384e322022-06-23 22:28:25 +00009
10// Initialze before using!
11// Please see webserver_main for the example how this variable is initialzed,
Ed Tanouscf9e4172022-12-21 09:30:16 -080012// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
Nan Zhou6384e322022-06-23 22:28:25 +000013extern sdbusplus::asio::connection* systemBus;
Ed Tanous911ac312017-08-15 09:37:42 -070014
Ed Tanous1abe55e2018-09-05 08:30:59 -070015} // namespace connections
16} // namespace crow