mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
minor cleanup
This commit is contained in:
parent
c11e61a51d
commit
46f6d005d7
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user