ldb_tdb: Warn when reindexing is done
[Samba/vl.git] / source3 / libsmb / clidgram.h
blob6cd6222df68bdf44ea2ee3bc1fbd5c91959af580
1 /*
2 Unix SMB/CIFS implementation.
3 client dgram calls
4 Copyright (C) Andrew Tridgell 1994-1998
5 Copyright (C) Richard Sharpe 2001
6 Copyright (C) John Terpstra 2001
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _LIBSMB_CLIDGRAM_H_
23 #define _LIBSMB_CLIDGRAM_H_
25 #include "../libcli/netlogon/netlogon.h"
27 /* The following definitions come from libsmb/clidgram.c */
29 struct tevent_req *nbt_getdc_send(TALLOC_CTX *mem_ctx,
30 struct tevent_context *ev,
31 struct messaging_context *msg_ctx,
32 const struct sockaddr_storage *dc_addr,
33 const char *domain_name,
34 const struct dom_sid *sid,
35 uint32_t nt_version);
36 NTSTATUS nbt_getdc_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
37 uint32_t *nt_version, const char **dc_name,
38 struct netlogon_samlogon_response **samlogon_response);
39 NTSTATUS nbt_getdc(struct messaging_context *msg_ctx,
40 uint32_t timeout_in_seconds,
41 const struct sockaddr_storage *dc_addr,
42 const char *domain_name,
43 const struct dom_sid *sid,
44 uint32_t nt_version,
45 TALLOC_CTX *mem_ctx,
46 uint32_t *pnt_version,
47 const char **dc_name,
48 struct netlogon_samlogon_response **samlogon_response);
50 #endif /* _LIBSMB_CLIDGRAM_H_ */