mirror of https://github.com/oxen-io/lokinet
Forward-declare ub_ctx/ub_result
Avoids needing unbound.h in the search path to include the unbound_resolver.hpp header.
This commit is contained in:
parent
1315dabcb9
commit
f51d0a80a2
|
@ -5,6 +5,8 @@
|
|||
#include <sstream>
|
||||
#include <llarp/util/str.hpp>
|
||||
|
||||
#include <unbound.h>
|
||||
|
||||
namespace llarp::dns
|
||||
{
|
||||
struct PendingUnboundLookup
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <unbound.h>
|
||||
#include <mutex>
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
|
@ -17,6 +16,12 @@
|
|||
#include <uvw.hpp>
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
struct ub_ctx;
|
||||
struct ub_result;
|
||||
}
|
||||
|
||||
namespace llarp::dns
|
||||
{
|
||||
using ReplyFunction =
|
||||
|
|
Loading…
Reference in New Issue