lokinet/llarp/dns/sd_platform.hpp
dr7ana 46ad8d4058 Clang format include sorting + CMake
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use
- shuffled around some cmake linking to simplify dependency graph
- superfluous files removed
2023-10-24 12:11:51 -07:00

25 lines
560 B
C++

#pragma once
#include "platform.hpp"
#include <llarp/constants/platform.hpp>
#include <type_traits>
namespace llarp::dns
{
namespace sd
{
/// a dns platform that sets dns via systemd resolved
class Platform : public I_Platform
{
public:
virtual ~Platform() = default;
void
set_resolver(unsigned int if_index, llarp::SockAddr dns, bool global) override;
};
} // namespace sd
using SD_Platform_t =
std::conditional_t<llarp::platform::has_systemd, sd::Platform, Null_Platform>;
} // namespace llarp::dns