lokinet/include/llarp/dns.h

43 lines
759 B
C
Raw Normal View History

2018-07-16 12:48:38 +00:00
#ifndef LLARP_DNS_H_
#define LLARP_DNS_H_
#include <llarp/ev.h> // for sockaadr
2018-07-21 13:24:47 +00:00
#include <sys/types.h> // for uint & ssize_t
2018-07-16 12:48:38 +00:00
/* non-cygnus does not have this type */
#ifdef _WIN32
#define uint UINT
#endif
2018-07-16 23:26:58 +00:00
#ifdef __cplusplus
extern "C"
2018-07-21 13:19:06 +00:00
{
2018-07-16 23:26:58 +00:00
#endif
/**
* dns.h
*
* dns client/server
*/
2018-07-16 12:48:38 +00:00
//#include <mutex>
// typedef std::mutex mtx_t;
// typedef std::lock_guard< mtx_t > lock_t;
2018-07-16 12:48:38 +00:00
// fwd declr
// struct dns_query;
struct dnsc_context;
struct dnsd_context;
// struct dnsd_question_request;
struct dnsc_answer_request;
2018-07-16 12:48:38 +00:00
2018-08-01 09:04:40 +00:00
//struct dns_tracker;
2018-07-16 23:26:58 +00:00
// should we pass by llarp::Addr
// not as long as we're supporting raw
typedef void (*dnsc_answer_hook_func)(dnsc_answer_request *request);
2018-07-16 12:48:38 +00:00
2018-07-16 23:26:58 +00:00
#ifdef __cplusplus
}
#endif
2018-07-16 12:48:38 +00:00
#endif