summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-01 00:41:47 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-01 00:41:47 +0000
commit99fbf5c4bc870119a12e9b6467beb6a8b8650cc0 (patch)
tree3d62f00287252c9af4b13db36c2ed683c7fbe197 /source3/tdb/tdb.h
parent05cb3464f972d336dcb82ca332bf9b2617646070 (diff)
downloadsamba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.tar.gz
samba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.tar.bz2
samba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.zip
added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.
TDB_INTERNAL replaces the old method of passing a null filename (This used to be commit 8ec815920d46f205b9f3fff82397c731753c3a10)
Diffstat (limited to 'source3/tdb/tdb.h')
-rw-r--r--source3/tdb/tdb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index 90a1cccfac..f4039f119c 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -46,6 +46,7 @@ typedef struct {
int *locked; /* set if we have a chain locked */
int ecode; /* error code for last tdb error */
struct tdb_header header; /* a cached copy of the header */
+ unsigned flags; /* the flags passed to tdb_open */
} TDB_CONTEXT;
/* flags to tdb_store() */
@@ -55,6 +56,9 @@ typedef struct {
/* flags for tdb_open() */
#define TDB_CLEAR_IF_FIRST 1
+#define TDB_INTERNAL 2 /* don't store on disk */
+#define TDB_NOLOCK 4 /* don't do any locking */
+#define TDB_NOMMAP 8 /* don't use mmap */
/* error codes */
enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK,