2018-07-16 12:48:38 +00:00
|
|
|
#ifndef LLARP_DNS_H_
|
|
|
|
#define LLARP_DNS_H_
|
|
|
|
|
2018-10-09 12:39:47 +00:00
|
|
|
//#include <llarp/ev.h> // for sockaadr
|
|
|
|
//#include <sys/types.h> // for uint & ssize_t
|
2018-07-16 12:48:38 +00:00
|
|
|
|
2018-10-09 12:39:47 +00:00
|
|
|
// all uint should have been removed in favor of uint_16t
|
2018-07-30 04:38:14 +00:00
|
|
|
/* non-cygnus does not have this type */
|
2018-10-09 12:39:47 +00:00
|
|
|
//#ifdef _WIN32
|
|
|
|
//#define uint UINT
|
|
|
|
//#endif
|
2018-07-30 04:38:14 +00:00
|
|
|
|
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
|
|
|
|
2018-07-24 01:43:32 +00:00
|
|
|
// fwd declr
|
|
|
|
struct dnsc_answer_request;
|
2018-07-16 12:48:38 +00:00
|
|
|
|
2018-07-24 01:43:32 +00:00
|
|
|
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
|