s4-netlogon: implement dcesrv_netr_DsRAddressToSitenamesExW
[Samba/aatanasov.git] / source4 / libcli / libcli.h
blobe729e12721e6c28aecb6dc9ba33266dfdbbcd452
1 /*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 2004
5 Copyright (C) James Myers 2003 <myersjj@samba.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef __LIBCLI_H__
22 #define __LIBCLI_H__
24 #include "librpc/gen_ndr/nbt.h"
26 struct substitute_context;
28 /*
29 smbcli_state: internal state used in libcli library for single-threaded callers,
30 i.e. a single session on a single socket.
32 struct smbcli_state {
33 struct smbcli_transport *transport;
34 struct smbcli_session *session;
35 struct smbcli_tree *tree;
36 struct substitute_context *substitute;
37 struct smblsa_state *lsa;
40 struct clilist_file_info {
41 uint64_t size;
42 uint16_t attrib;
43 time_t mtime;
44 const char *name;
45 const char *short_name;
48 struct nbt_dc_name {
49 const char *address;
50 const char *name;
53 struct cli_credentials;
54 struct tevent_context;
56 /* passed to br lock code. */
57 enum brl_type {
58 READ_LOCK,
59 WRITE_LOCK,
60 PENDING_READ_LOCK,
61 PENDING_WRITE_LOCK
66 #include "libcli/raw/libcliraw.h"
67 struct gensec_settings;
68 #include "libcli/libcli_proto.h"
70 #endif /* __LIBCLI_H__ */