Forward-declare ub_ctx/ub_result

Avoids needing unbound.h in the search path to include the
unbound_resolver.hpp header.
pull/1688/head
Jason Rhinelander 3 years ago committed by Jeff Becker
parent 1315dabcb9
commit f51d0a80a2
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save