s4-lsaprc: Don't call lsa_OpenPolicy2 in lsa_LookupNames4.
[Samba/gebeck_regimport.git] / source3 / smbd / smbd.h
blob9233fd743cf885bfef620f2d0c92e68a10c914bd
1 /*
2 Unix SMB/CIFS implementation.
3 Main SMB server routines
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _SMBD_SMBD_H
20 #define _SMBD_SMBD_H
22 struct dptr_struct;
23 struct aio_extra;
25 #include "smb_acls.h"
26 #include "librpc/gen_ndr/smbXsrv.h"
27 #include "vfs.h"
28 #include "smbd/proto.h"
29 #include "locking/proto.h"
32 * Pathnames used if request done
33 * under privilege.
35 struct privilege_paths {
36 struct smb_filename parent_name;
37 struct smb_filename file_name;
40 struct trans_state {
41 struct trans_state *next, *prev;
42 uint64_t vuid; /* SMB2 compat */
43 uint64_t mid;
45 uint32 max_param_return;
46 uint32 max_data_return;
47 uint32 max_setup_return;
49 uint8 cmd; /* SMBtrans or SMBtrans2 */
51 char *name; /* for trans requests */
52 uint16 call; /* for trans2 and nttrans requests */
54 bool close_on_completion;
55 bool one_way;
57 unsigned int setup_count;
58 uint16 *setup;
60 size_t received_data;
61 size_t received_param;
63 size_t total_param;
64 char *param;
66 size_t total_data;
67 char *data;
71 * unix_convert_flags
73 #define UCF_SAVE_LCOMP 0x00000001
74 #define UCF_ALWAYS_ALLOW_WCARD_LCOMP 0x00000002
75 #define UCF_COND_ALLOW_WCARD_LCOMP 0x00000004
76 #define UCF_POSIX_PATHNAMES 0x00000008
77 #define UCF_UNIX_NAME_LOOKUP 0x00000010
79 #endif /* _SMBD_SMBD_H */