vfs_ceph_new: Remove unused symbol for ceph_readdir
[Samba.git] / source3 / include / async_smb.h
blob3c64d082982e8a09d3dba4ceb75a2ed86eb771e7
1 /*
2 Unix SMB/CIFS implementation.
3 Infrastructure for async SMB client requests
4 Copyright (C) Volker Lendecke 2008
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 __ASYNC_SMB_H__
21 #define __ASYNC_SMB_H__
23 struct cli_state;
25 struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
26 struct tevent_context *ev,
27 struct cli_state *cli,
28 uint8_t smb_command,
29 uint8_t additional_flags,
30 uint16_t additional_flags2,
31 uint8_t wct, uint16_t *vwv,
32 int iov_count,
33 struct iovec *bytes_iov);
34 struct tevent_req *cli_smb_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
35 struct cli_state *cli,
36 uint8_t smb_command,
37 uint8_t additional_flags,
38 uint16_t additional_flags2,
39 uint8_t wct, uint16_t *vwv,
40 uint32_t num_bytes,
41 const uint8_t *bytes);
42 NTSTATUS cli_smb_recv(struct tevent_req *req,
43 TALLOC_CTX *mem_ctx, uint8_t **pinbuf,
44 uint8_t min_wct, uint8_t *pwct, uint16_t **pvwv,
45 uint32_t *pnum_bytes, uint8_t **pbytes);
47 #endif