r22669: fix uninitialized element which was causing a crash with 'net password set'
[Samba.git] / source / libcli / libcli.h
blobaee22e26935e93e3eb1ea578d6e3addf500297e2
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 2 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, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __LIBCLI_H__
23 #define __LIBCLI_H__
25 #include "core.h"
26 #include "librpc/gen_ndr/nbt.h"
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 event_context;
55 #include "libcli/raw/libcliraw.h"
56 #include "libcli/libcli_proto.h"
58 #endif /* __LIBCLI_H__ */