From 94c04b10db5032d83c21ea6eb8665bf930e81a9f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Feb 2011 11:23:53 +1100 Subject: build: moved libds/common/flag_mapping.c into a common subsystem Pair-Programmed-With: Andrew Bartlett --- libds/common/flag_mapping.c | 1 + libds/common/flag_mapping.h | 13 +++++++++++++ libds/common/wscript_build | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 libds/common/flag_mapping.h create mode 100644 libds/common/wscript_build (limited to 'libds') diff --git a/libds/common/flag_mapping.c b/libds/common/flag_mapping.c index 99421ed533..471afd06f9 100644 --- a/libds/common/flag_mapping.c +++ b/libds/common/flag_mapping.c @@ -23,6 +23,7 @@ #include "includes.h" #include "librpc/gen_ndr/samr.h" #include "../libds/common/flags.h" +#include "flag_mapping.h" /* translated the ACB_CTRL Flags to UserFlags (userAccountControl) diff --git a/libds/common/flag_mapping.h b/libds/common/flag_mapping.h new file mode 100644 index 0000000000..4b1cc3b05f --- /dev/null +++ b/libds/common/flag_mapping.h @@ -0,0 +1,13 @@ +#ifndef __LIBDS_COMMON_FLAG_MAPPING_H__ +#define __LIBDS_COMMON_FLAG_MAPPING_H__ + +/* The following definitions come from flag_mapping.c */ + +uint32_t ds_acb2uf(uint32_t acb); +uint32_t ds_uf2acb(uint32_t uf); +uint32_t ds_uf2atype(uint32_t uf); +uint32_t ds_gtype2atype(uint32_t gtype); +enum lsa_SidType ds_atype_map(uint32_t atype); +uint32_t ds_uf2prim_group_rid(uint32_t uf); + +#endif /* __LIBDS_COMMON_FLAG_MAPPING_H__ */ diff --git a/libds/common/wscript_build b/libds/common/wscript_build new file mode 100644 index 0000000000..46787db19b --- /dev/null +++ b/libds/common/wscript_build @@ -0,0 +1,3 @@ + +bld.SAMBA_SUBSYSTEM('flag_mapping', + source='flag_mapping.c') -- cgit