Support DNS Over HTTPS

This commit is contained in:
Nick Peng
2019-03-30 20:10:27 +08:00
parent 5501bfb6a3
commit 2d01ed8a04
21 changed files with 1264 additions and 88 deletions

View File

@@ -1,6 +1,8 @@
#ifndef _SMART_DNS_SERVER_H
#define _SMART_DNS_SERVER_H
#include "dns.h"
#ifdef __cpluscplus
extern "C" {
#endif
@@ -15,6 +17,12 @@ void dns_server_stop(void);
void dns_server_exit(void);
/* query result notify function */
typedef int (*dns_result_callback)(char *domain, dns_rtcode_t rtcode, dns_type_t addr_type, char *ip, void *user_ptr);
/* query domain */
int dns_server_query(char *domain, int qtype, dns_result_callback callback, void *user_ptr);
#ifdef __cpluscplus
}
#endif