param: Rename variable used for lp_ldap_suffix szLdapSuffix
[Samba.git] / libcli / smb / tstream_smbXcli_np.h
blobc4af532717315c2ca90af0a9eeafffcb8b411957
1 /*
2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2010
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _CLI_NP_TSTREAM_H_
21 #define _CLI_NP_TSTREAM_H_
23 struct tevent_context;
24 struct tevent_req;
25 struct tstream_context;
26 struct smbXcli_conn;
27 struct smbXcli_session;
28 struct smbXcli_tcon;
30 struct tevent_req *tstream_smbXcli_np_open_send(TALLOC_CTX *mem_ctx,
31 struct tevent_context *ev,
32 struct smbXcli_conn *conn,
33 struct smbXcli_session *session,
34 struct smbXcli_tcon *tcon,
35 uint16_t pid,
36 unsigned int timeout,
37 const char *npipe);
38 NTSTATUS _tstream_smbXcli_np_open_recv(struct tevent_req *req,
39 TALLOC_CTX *mem_ctx,
40 struct tstream_context **_stream,
41 const char *location);
42 #define tstream_smbXcli_np_open_recv(req, mem_ctx, stream) \
43 _tstream_smbXcli_np_open_recv(req, mem_ctx, stream, __location__)
45 bool tstream_is_smbXcli_np(struct tstream_context *stream);
47 NTSTATUS tstream_smbXcli_np_use_trans(struct tstream_context *stream);
49 unsigned int tstream_smbXcli_np_set_timeout(struct tstream_context *stream,
50 unsigned int timeout);
52 #endif /* _CLI_NP_TSTREAM_H_ */