mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
46ad8d4058
- 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
25 lines
552 B
C++
25 lines
552 B
C++
#pragma once
|
|
#include "platform.hpp"
|
|
|
|
#include <llarp/constants/platform.hpp>
|
|
|
|
#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;
|
|
};
|
|
}; // namespace nm
|
|
using NM_Platform_t = std::conditional_t<false, nm::Platform, Null_Platform>;
|
|
} // namespace llarp::dns
|