smbd: Save a few lines in smbXsrv_client_global_init()
[samba.git] / source3 / smbd / smb2_ioctl_private.h
1 /*
2    Unix SMB/CIFS implementation.
3    Core SMB2 server
4
5    Copyright (C) Stefan Metzmacher 2009
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 __SMB2_IOCTL_PRIVATE_H__
22 #define __SMB2_IOCTL_PRIVATE_H__
23
24 struct smbd_smb2_ioctl_state {
25         struct smbd_smb2_request *smb2req;
26         struct smb_request *smbreq;
27         files_struct *fsp;
28         DATA_BLOB in_input;
29         uint32_t in_max_output;
30         DATA_BLOB out_output;
31         uint8_t body_padding;
32         bool disconnect;
33 };
34
35 struct tevent_req *smb2_ioctl_dfs(uint32_t,
36                                   struct tevent_context *,
37                                   struct tevent_req *,
38                                   struct smbd_smb2_ioctl_state *);
39
40 struct tevent_req *smb2_ioctl_filesys(uint32_t,
41                                       struct tevent_context *,
42                                       struct tevent_req *,
43                                       struct smbd_smb2_ioctl_state *);
44
45 struct tevent_req *smb2_ioctl_named_pipe(uint32_t,
46                                          struct tevent_context *,
47                                          struct tevent_req *,
48                                          struct smbd_smb2_ioctl_state *);
49
50 struct tevent_req *smb2_ioctl_network_fs(uint32_t,
51                                          struct tevent_context *,
52                                          struct tevent_req *,
53                                          struct smbd_smb2_ioctl_state *);
54
55 struct tevent_req *smb2_ioctl_smbtorture(uint32_t ctl_code,
56                                          struct tevent_context *ev,
57                                          struct tevent_req *req,
58                                          struct smbd_smb2_ioctl_state *state);
59
60 #endif