addns: Async ads_dns_lookup_srv
[nivanova/samba-autobuild/.git] / lib / addns / dnsquery.h
index 213ed325a6e36f77d6138e0aaf98e7d5676955b1..8dc2806f91bfe6edaffcf8b08bb25ff7aac65f53 100644 (file)
 #ifndef _ADS_DNS_H
 #define _ADS_DNS_H
 
+#include "replace.h"
+#include <tevent.h>
 #include "libcli/dns/dns.h"
 
 /* The following definitions come from libads/dns.c  */
 
+struct tevent_req *ads_dns_lookup_srv_send(TALLOC_CTX *mem_ctx,
+                                          struct tevent_context *ev,
+                                          const char *name);
+NTSTATUS ads_dns_lookup_srv_recv(struct tevent_req *req,
+                                TALLOC_CTX *mem_ctx,
+                                struct dns_rr_srv **srvs,
+                                size_t *num_srvs);
 NTSTATUS ads_dns_lookup_srv(TALLOC_CTX *ctx,
                                const char *name,
                                struct dns_rr_srv **dclist,