summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-05-04 23:07:14 -0400
committerAlexander Bokovoy <ab@samba.org>2012-05-23 17:51:49 +0300
commita8ee6f2ca588aae1220f8b6a257e6dd43eacd46b (patch)
treeb1e40d926996736a811ce161c7ad283bc81ed651
parent34a65739d32d7e895e71b2b81298fab82dfd11fe (diff)
downloadsamba-a8ee6f2ca588aae1220f8b6a257e6dd43eacd46b.tar.gz
samba-a8ee6f2ca588aae1220f8b6a257e6dd43eacd46b.tar.bz2
samba-a8ee6f2ca588aae1220f8b6a257e6dd43eacd46b.zip
addns: Make ads_dns_lookup_srv pulic
-rw-r--r--lib/addns/dnsquery.c2
-rw-r--r--lib/addns/dnsquery.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/addns/dnsquery.c b/lib/addns/dnsquery.c
index f680d63258..4b45722471 100644
--- a/lib/addns/dnsquery.c
+++ b/lib/addns/dnsquery.c
@@ -389,7 +389,7 @@ static NTSTATUS dns_send_req( TALLOC_CTX *ctx, const char *name, int q_type,
Simple wrapper for a DNS SRV query
*********************************************************************/
-static NTSTATUS ads_dns_lookup_srv( TALLOC_CTX *ctx,
+NTSTATUS ads_dns_lookup_srv(TALLOC_CTX *ctx,
const char *dns_hosts_file,
const char *name,
struct dns_rr_srv **dclist,
diff --git a/lib/addns/dnsquery.h b/lib/addns/dnsquery.h
index a3ea47a04e..1491b699c2 100644
--- a/lib/addns/dnsquery.h
+++ b/lib/addns/dnsquery.h
@@ -24,6 +24,11 @@
/* The following definitions come from libads/dns.c */
+NTSTATUS ads_dns_lookup_srv(TALLOC_CTX *ctx,
+ const char *dns_hosts_file,
+ const char *name,
+ struct dns_rr_srv **dclist,
+ int *numdcs);
NTSTATUS ads_dns_lookup_ns(TALLOC_CTX *ctx,
const char *dns_hosts_file,
const char *dnsdomain,