summaryrefslogtreecommitdiff
path: root/source3/include
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
commit8d31403fe831684daaa45d2784c36ab14e3a822a (patch)
tree26cc54783efb4e8b7637bca7056968b497634ac3 /source3/include
parentb57805dd9b41ee1ff8246563ff8fdabfcbc07538 (diff)
downloadsamba-8d31403fe831684daaa45d2784c36ab14e3a822a.tar.gz
samba-8d31403fe831684daaa45d2784c36ab14e3a822a.tar.bz2
samba-8d31403fe831684daaa45d2784c36ab14e3a822a.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. (This used to be commit 5b998cdc1d552234236862f6a2bbae703b0c146e)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/idmap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/include/idmap.h b/source3/include/idmap.h
index 4b38128c2f..5a5e87c141 100644
--- a/source3/include/idmap.h
+++ b/source3/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_ */