r23792: convert Samba4 to GPLv3
[samba.git] / source4 / 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 3 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, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __LIBCLI_H__
22 #define __LIBCLI_H__
23
24 #include "core.h"
25 #include "librpc/gen_ndr/nbt.h"
26
27 /* 
28    smbcli_state: internal state used in libcli library for single-threaded callers, 
29    i.e. a single session on a single socket. 
30  */
31 struct smbcli_state {
32         struct smbcli_transport *transport;
33         struct smbcli_session *session;
34         struct smbcli_tree *tree;
35         struct substitute_context *substitute;
36         struct smblsa_state *lsa;
37 };
38
39 struct clilist_file_info {
40         uint64_t size;
41         uint16_t attrib;
42         time_t mtime;
43         const char *name;
44         const char *short_name;
45 };
46
47 struct nbt_dc_name {
48         const char *address;
49         const char *name;
50 };
51
52 struct cli_credentials;
53 struct event_context;
54 #include "libcli/raw/libcliraw.h"
55 #include "libcli/libcli_proto.h"
56
57 #endif /* __LIBCLI_H__ */