summaryrefslogtreecommitdiffstats
path: root/source/include/idmap.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-26 23:48:46 +0000
committerJeremy Allison <jra@samba.org>2003-06-26 23:48:46 +0000
commit5b998cdc1d552234236862f6a2bbae703b0c146e (patch)
tree45ec0f1f4768a958d3b7f3d19f80313b253287a2 /source/include/idmap.h
parent030b35ca0fc9fe49610084c6c1be95241157564b (diff)
downloadsamba-5b998cdc1d552234236862f6a2bbae703b0c146e.tar.gz
samba-5b998cdc1d552234236862f6a2bbae703b0c146e.tar.xz
samba-5b998cdc1d552234236862f6a2bbae703b0c146e.zip
Add include guards around idmap.h, change ID_NOMAP to ID_QUERY_ONLY
and ID_CACHE to ID_CACHE_SAVE. Added locking around tdb writes & deletes for multi-process access. Jeremy.
Diffstat (limited to 'source/include/idmap.h')
-rw-r--r--source/include/idmap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/include/idmap.h b/source/include/idmap.h
index 4b38128c2f2..5a5e87c1415 100644
--- a/source/include/idmap.h
+++ b/source/include/idmap.h
@@ -1,3 +1,5 @@
+#ifndef _IDMAP_H_
+#define _IDMAP_H_
/*
Unix SMB/CIFS implementation.
@@ -32,8 +34,8 @@
#define ID_TYPEMASK 0x0f
-#define ID_NOMAP 0x10
-#define ID_CACHE 0x20
+#define ID_QUERY_ONLY 0x10
+#define ID_CACHE_SAVE 0x20
/* Filled out by IDMAP backends */
struct idmap_methods {
@@ -51,4 +53,4 @@ struct idmap_methods {
/* Called to dump backend status */
void (*status)(void);
};
-
+#endif /* _IDMAP_H_ */