blob: a4a16bb2d15e6eba2bc5871c4db3ca618dfde500 [file] [log] [blame]
#pragma once
#include <sdbusplus/asio/connection.hpp>
#include <iostream>
namespace mapbox {
template <typename T, typename... Types>
const T* getPtr(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> systemBus;
} // namespace connections
} // namespace crow