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:
Jason Rhinelander 2021-09-01 18:58:00 -03:00 committed by Jeff Becker
parent 1315dabcb9
commit f51d0a80a2
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,8 @@
#include <sstream>
#include <llarp/util/str.hpp>
#include <unbound.h>
namespace llarp::dns
{
struct PendingUnboundLookup

View File

@ -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 =