lokinet/llarp/dns/nm_platform.hpp

25 lines
552 B
C++
Raw Normal View History

2022-06-22 16:14:33 +00:00
#pragma once
#include "platform.hpp"
#include <llarp/constants/platform.hpp>
2022-06-22 16:14:33 +00:00
#include <type_traits>
#include <unordered_map>
namespace llarp::dns
{
namespace nm
{
// a dns platform that sets dns via network manager
class Platform : public I_Platform
{
public:
virtual ~Platform() = default;
void
set_resolver(unsigned int index, llarp::SockAddr dns, bool global) override;
2022-06-22 16:14:33 +00:00
};
}; // namespace nm
using NM_Platform_t = std::conditional_t<false, nm::Platform, Null_Platform>;
} // namespace llarp::dns