minor cleanup

This commit is contained in:
Ryan Tharp 2018-10-01 02:59:50 -07:00
parent c11e61a51d
commit 46f6d005d7
2 changed files with 2 additions and 12 deletions

View File

@ -19,21 +19,9 @@ extern "C"
* dns client/server * dns client/server
*/ */
//#include <mutex>
// typedef std::mutex mtx_t;
// typedef std::lock_guard< mtx_t > lock_t;
// fwd declr // fwd declr
// struct dns_query;
struct dnsc_context;
struct dnsd_context;
// struct dnsd_question_request;
struct dnsc_answer_request; struct dnsc_answer_request;
// struct dns_tracker;
// should we pass by llarp::Addr
// not as long as we're supporting raw
typedef void (*dnsc_answer_hook_func)(dnsc_answer_request *request); typedef void (*dnsc_answer_hook_func)(dnsc_answer_request *request);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -11,6 +11,8 @@
#include <llarp/net.hpp> // for llarp::Addr #include <llarp/net.hpp> // for llarp::Addr
struct dnsd_context;
// dnsc can work over any UDP socket // dnsc can work over any UDP socket
// however we can't ignore udp->user // however we can't ignore udp->user
// we need to be able to reference the request (being a request or response) // we need to be able to reference the request (being a request or response)