diff options
Diffstat (limited to 'include/dbus_singleton.hpp')
-rw-r--r-- | include/dbus_singleton.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/dbus_singleton.hpp b/include/dbus_singleton.hpp index 63c88b7544..283021641b 100644 --- a/include/dbus_singleton.hpp +++ b/include/dbus_singleton.hpp @@ -1,11 +1,15 @@ #pragma once +#include <boost/asio/io_context.hpp> #include <sdbusplus/asio/connection.hpp> namespace crow { namespace connections { -static std::shared_ptr<sdbusplus::asio::connection> systemBus; + +// Initialze before using! +// Please see webserver_main for the example how this variable is initialzed, +extern sdbusplus::asio::connection* systemBus; } // namespace connections } // namespace crow |