diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-15 15:30:37 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-15 15:30:37 +0000 |
commit | d0a1f96e0f699f8e3ceb0e0d826423cd643803e7 (patch) | |
tree | acd29c96102b78751b815784cf1ad71c02a27ea2 | |
parent | ee12b10d21022287baf4432d1df743c4b28223b2 (diff) | |
download | samba-d0a1f96e0f699f8e3ceb0e0d826423cd643803e7.tar.gz samba-d0a1f96e0f699f8e3ceb0e0d826423cd643803e7.tar.xz samba-d0a1f96e0f699f8e3ceb0e0d826423cd643803e7.zip |
support both read and write locks inside the tdb
-rw-r--r-- | source/tdb/tdb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/tdb/tdb.h b/source/tdb/tdb.h index 47254b5013e..fd770cc5b92 100644 --- a/source/tdb/tdb.h +++ b/source/tdb/tdb.h @@ -37,6 +37,11 @@ typedef struct { size_t dsize; } TDB_DATA; +struct tdb_lock_type { + unsigned count; + unsigned ltype; +}; + /* this is the context structure that is returned from a db open */ typedef struct { char *name; /* the name of the database */ @@ -44,7 +49,7 @@ typedef struct { 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 *locked; /* set if we have a chain locked */ + struct tdb_lock_type *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 */ |