Merge commit 'release-4-0-0alpha15' into master4-tmp
[kai/samba-autobuild/.git] / libds / common / flag_mapping.h
1 /*
2    Unix SMB/CIFS implementation.
3    helper mapping functions for the UF and ACB flags
4
5    Copyright (C) Stefan (metze) Metzmacher 2002
6    Copyright (C) Andrew Tridgell 2004
7    Copyright (C) Matthias Dieter Wallnöfer 2010
8
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 3 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #ifndef __LIBDS_COMMON_FLAG_MAPPING_H__
24 #define __LIBDS_COMMON_FLAG_MAPPING_H__
25
26 /* The following definitions come from flag_mapping.c  */
27
28 uint32_t ds_acb2uf(uint32_t acb);
29 uint32_t ds_uf2acb(uint32_t uf);
30 uint32_t ds_uf2atype(uint32_t uf);
31 uint32_t ds_gtype2atype(uint32_t gtype);
32 enum lsa_SidType ds_atype_map(uint32_t atype);
33 uint32_t ds_uf2prim_group_rid(uint32_t uf);
34
35 #endif /* __LIBDS_COMMON_FLAG_MAPPING_H__ */