blob: 2465c01de679b8715812b290db57f5e478f6d267 [file] [log] [blame]
Ed Tanous40e9b922024-09-10 13:50:16 -07001// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright OpenBMC Authors
Ed Tanous911ac312017-08-15 09:37:42 -07003#pragma once
Ed Tanous1abe55e2018-09-05 08:30:59 -07004#include <sdbusplus/asio/connection.hpp>
Ed Tanous911ac312017-08-15 09:37:42 -07005
Ed Tanous1abe55e2018-09-05 08:30:59 -07006namespace crow
7{
8namespace connections
9{
Nan Zhou6384e322022-06-23 22:28:25 +000010
Ed Tanous8ece0e42024-01-02 13:16:50 -080011// Initialize before using!
12// Please see webserver_main for the example how this variable is initialized,
Ed Tanouscf9e4172022-12-21 09:30:16 -080013// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
Nan Zhou6384e322022-06-23 22:28:25 +000014extern sdbusplus::asio::connection* systemBus;
Ed Tanous911ac312017-08-15 09:37:42 -070015
Ed Tanous1abe55e2018-09-05 08:30:59 -070016} // namespace connections
17} // namespace crow