76fa13525e1a84f0d4e870cba1ff14b8f22104b1
[jelmer/samba4-debian.git] / source / libcli / libcli.h
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>
6
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 2 of the License, or
10    (at your option) any later version.
11
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.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 #include "smb.h"
23
24 /* 
25    smbcli_state: internal state used in libcli library for single-threaded callers, 
26    i.e. a single session on a single socket. 
27  */
28 struct smbcli_state {
29         struct smbcli_transport *transport;
30         struct smbcli_session *session;
31         struct smbcli_tree *tree;
32         struct substitute_context *substitute;
33         struct smblsa_state *lsa;
34 };
35
36 struct clilist_file_info {
37         uint64_t size;
38         uint16_t attrib;
39         time_t mtime;
40         const char *name;
41         const char *short_name;
42 };
43
44 struct nbt_dc_name {
45         const char *address;
46         const char *name;
47 };
48
49 #include "libcli/libcli_proto.h"