smbd: Move fcb_or_dos_open() out of open_file_ntcreate()
[samba.git] / source3 / smbd / smb1_utils.h
1 /*
2  * Unix SMB/CIFS implementation.
3  * Util functions valid in the SMB1 server
4  *
5  * Copyright (C) Volker Lendecke 2019
6  * Copyright by the authors of the functions moved here eventually
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef __SMBD_SMB1_UTILS_H__
23 #define __SMBD_SMB1_UTILS_H__
24
25 #include "includes.h"
26 #include "vfs.h"
27 #include "proto.h"
28
29 struct files_struct *fcb_or_dos_open(
30         struct smb_request *req,
31         const struct smb_filename *smb_fname,
32         uint32_t access_mask,
33         uint32_t share_access,
34         uint32_t create_options,
35         uint32_t private_flags);
36
37 #endif