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 "librpc/gen_ndr/nbt.h"
|
---|
25 |
|
---|
26 | struct substitute_context;
|
---|
27 |
|
---|
28 | /*
|
---|
29 | smbcli_state: internal state used in libcli library for single-threaded callers,
|
---|
30 | i.e. a single session on a single socket.
|
---|
31 | */
|
---|
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;
|
---|
38 | };
|
---|
39 |
|
---|
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;
|
---|
46 | };
|
---|
47 |
|
---|
48 | struct nbt_dc_name {
|
---|
49 | const char *address;
|
---|
50 | const char *name;
|
---|
51 | };
|
---|
52 |
|
---|
53 | struct cli_credentials;
|
---|
54 | struct tevent_context;
|
---|
55 |
|
---|
56 | /* passed to br lock code. */
|
---|
57 | enum brl_type {
|
---|
58 | READ_LOCK,
|
---|
59 | WRITE_LOCK,
|
---|
60 | PENDING_READ_LOCK,
|
---|
61 | PENDING_WRITE_LOCK
|
---|
62 | };
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 | #include "libcli/raw/libcliraw.h"
|
---|
67 | struct gensec_settings;
|
---|
68 | #include "libcli/libcli_proto.h"
|
---|
69 |
|
---|
70 | #endif /* __LIBCLI_H__ */
|
---|