summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-26 17:22:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:47 -0500
commit9d931a84213b33727536c4b80320ce93d924ae8d (patch)
tree623877ca8ef1cd7961245cee31eb776c926642ac /source3
parentf1c239872387fbfd5d52de2fe60c62108a4a7926 (diff)
downloadsamba-9d931a84213b33727536c4b80320ce93d924ae8d.tar.gz
samba-9d931a84213b33727536c4b80320ce93d924ae8d.tar.bz2
samba-9d931a84213b33727536c4b80320ce93d924ae8d.zip
r18926: Add some useful macros.
Guenther (This used to be commit 9be5cb27e4da061ddf03ae6321c29890f6cf585b)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/gpo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/gpo.h b/source3/include/gpo.h
index 65c96c31e6..cdec1628d0 100644
--- a/source3/include/gpo.h
+++ b/source3/include/gpo.h
@@ -35,6 +35,9 @@ enum GPO_LINK_TYPE {
#define GPO_LIST_FLAG_MACHINE 0x00000001
#define GPO_LIST_FLAG_SITEONLY 0x00000002
+#define GPO_VERSION_USER(x) (x >> 16)
+#define GPO_VERSION_MACHINE(x) (x & 0xffff)
+
struct GROUP_POLICY_OBJECT {
uint32 options; /* GPFLAGS_* */
uint32 version;