blob: e6be81b37352c827b3543d0b641b3b58689650ff [file] [log] [blame]
#pragma once
#include <sdbusplus/asio/connection.hpp>
#include <iostream>
namespace mapbox {
template <typename T, typename... Types>
const T* get_ptr(const mapbox::util::variant<Types...>& v) {
if (v.template is<std::remove_const_t<T>>()) {
return &v.template get_unchecked<std::remove_const_t<T>>();
} else {
return nullptr;
}
}
} // namespace mapbox
namespace crow {
namespace connections {
static std::shared_ptr<sdbusplus::asio::connection> system_bus;
} // namespace connections
} // namespace crow