python:tests: Don’t needlessly create single‐element tuple
[Samba.git] / lib / addns / dnsquery_srv.h
blobd10c74e9880bdad3ed49ed3af34768c15a1a5949
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 3 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 #ifndef __LIB_ADDNS_DNSQUERY_SRV_H__
17 #define __LIB_ADDNS_DNSQUERY_SRV_H__
19 #include "replace.h"
20 #include <tevent.h>
21 #include "libcli/util/ntstatus.h"
22 #include "libcli/dns/dns.h"
24 struct tevent_req *ads_dns_query_srv_send(
25 TALLOC_CTX *mem_ctx,
26 struct tevent_context *ev,
27 uint32_t async_dns_timeout,
28 const char *sitename,
29 const char *query);
30 NTSTATUS ads_dns_query_srv_recv(
31 struct tevent_req *req,
32 TALLOC_CTX *mem_ctx,
33 struct dns_rr_srv **srvs,
34 size_t *num_srvs);
35 NTSTATUS ads_dns_query_srv(
36 TALLOC_CTX *mem_ctx,
37 uint32_t async_dns_timeout,
38 const char *sitename,
39 const char *query,
40 struct dns_rr_srv **srvs,
41 size_t *num_srvs);
43 char *ads_dns_query_string_dcs(TALLOC_CTX *mem_ctx, const char *realm);
44 char *ads_dns_query_string_gcs(TALLOC_CTX *mem_ctx, const char *realm);
45 char *ads_dns_query_string_kdcs(TALLOC_CTX *mem_ctx, const char *realm);
46 char *ads_dns_query_string_pdc(TALLOC_CTX *mem_ctx, const char *realm);
48 struct GUID;
49 char *ads_dns_query_string_dcs_guid(
50 TALLOC_CTX *mem_ctx,
51 const struct GUID *domain_guid,
52 const char *realm);
54 #endif /* _ADS_DNS_H */