]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Make dns_lookup_list_async() available to other Samba callers.
authorJeremy Allison <jra@samba.org>
Tue, 21 Jul 2020 21:56:47 +0000 (14:56 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Aug 2020 06:34:37 +0000 (06:34 +0000)
This allows the async DNS lookups to be re-used inside the dsgetdcname() internals
code as previously described.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/namequery.c
source3/libsmb/namequery.h

index 407ccd3cd6e22212f717c8e22f0ff114bf4ce1b2..73e0f172d58f3970a8754fb46bdb398262f7c0dc 100644 (file)
@@ -2315,12 +2315,12 @@ static void dns_lookup_list_a_done(struct tevent_req *req);
 static void dns_lookup_list_aaaa_done(struct tevent_req *req);
 #endif
 
-static NTSTATUS dns_lookup_list_async(TALLOC_CTX *ctx,
-                                     size_t num_dns_names,
-                                     const char **dns_lookup_names,
-                                     size_t *p_num_addrs,
-                                     struct sockaddr_storage **pp_addrs,
-                                     char ***pp_dns_names)
+NTSTATUS dns_lookup_list_async(TALLOC_CTX *ctx,
+                             size_t num_dns_names,
+                             const char **dns_lookup_names,
+                             size_t *p_num_addrs,
+                             struct sockaddr_storage **pp_addrs,
+                             char ***pp_dns_names)
 {
        struct dns_lookup_list_async_state *state = NULL;
        struct tevent_context *ev = NULL;
index aedb043ac810d2f687ab3f1fd01f099d3bf149fe..d6f5d21673371dbde7392351601ce8193f40e165 100644 (file)
@@ -85,6 +85,12 @@ NTSTATUS resolve_wins(TALLOC_CTX *mem_ctx,
                int name_type,
                struct sockaddr_storage **return_iplist,
                int *return_count);
+NTSTATUS dns_lookup_list_async(TALLOC_CTX *ctx,
+                              size_t num_dns_names,
+                              const char **dns_lookup_names,
+                              size_t *p_num_addrs,
+                              struct sockaddr_storage **pp_addrs,
+                              char ***pp_dns_names);
 NTSTATUS internal_resolve_name(const char *name,
                                int name_type,
                                const char *sitename,