summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-12-21 04:54:30 +0000
committerAndrew Tridgell <tridge@samba.org>1999-12-21 04:54:30 +0000
commit4951755413c11d4c5b9af4699a6e622056d52433 (patch)
tree23ea1c61c45663b69a3fba77f4e6b967d5d18435 /source/tdb/tdb.h
parent7067aeecabaea8a35f7a27de4b44f1e11afd07b7 (diff)
downloadsamba-4951755413c11d4c5b9af4699a6e622056d52433.tar.gz
samba-4951755413c11d4c5b9af4699a6e622056d52433.tar.xz
samba-4951755413c11d4c5b9af4699a6e622056d52433.zip
first cut at using the tdb code for the connections structure, the
SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
Diffstat (limited to 'source/tdb/tdb.h')
-rw-r--r--source/tdb/tdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/tdb/tdb.h b/source/tdb/tdb.h
index 316338606b0..111b804f71e 100644
--- a/source/tdb/tdb.h
+++ b/source/tdb/tdb.h
@@ -39,6 +39,7 @@ typedef struct {
void *map_ptr; /* where it is currently mapped */
int fd; /* open file descriptor for the database */
tdb_len map_size; /* how much space has been mapped */
+ int read_only; /* opened read-only */
int write_locked; /* set if we have the db locked */
struct tdb_header header; /* a cached copy of the header */
} TDB_CONTEXT;