diff options
author | defanor <defanor@uberspace.net> | 2021-09-22 18:44:25 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-09-22 18:44:25 +0300 |
commit | 498e517c2f2fc22b40550f5d87596b5926b73f45 (patch) | |
tree | bab0d3f9c0a8382060f5e83ed4bba5f73a246c09 /src/rexmpp_dns.h | |
parent | 18f1f8f8d12131402ca13b53488870f2ab21d3d1 (diff) |
Reintroduce c-ares as an option for DNS lookups
Diffstat (limited to 'src/rexmpp_dns.h')
-rw-r--r-- | src/rexmpp_dns.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rexmpp_dns.h b/src/rexmpp_dns.h index 3c94e90..704cafb 100644 --- a/src/rexmpp_dns.h +++ b/src/rexmpp_dns.h @@ -20,6 +20,11 @@ struct rexmpp_dns_ctx { struct ub_ctx *ctx; }; +#elif defined(USE_CARES) +#include <ares.h> +struct rexmpp_dns_ctx { + ares_channel channel; +}; #else struct rexmpp_dns_ctx { int dummy; @@ -35,10 +40,11 @@ struct rexmpp_dns_srv { char target[256]; }; +typedef struct rexmpp_dns_srv rexmpp_dns_srv_t; + struct rexmpp_dns_result { - char **data; + void **data; int *len; - char *qname; int secure; }; |