diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-10-20 09:48:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:29 -0500 |
commit | d71502b07cc0d113f4555d244bef9f06024907e4 (patch) | |
tree | 30acdbc930f90f8f09bfc5f22f72a6f6a65e8bd3 | |
parent | 118c064a473562274bff8fb47f37437db904b8fb (diff) | |
download | samba-d71502b07cc0d113f4555d244bef9f06024907e4.tar.gz samba-d71502b07cc0d113f4555d244bef9f06024907e4.tar.bz2 samba-d71502b07cc0d113f4555d244bef9f06024907e4.zip |
r19425: two more tdb functions from samba3
(This used to be commit c9d9d79c34e8a36a6f684b173b1cc861330adc5c)
-rw-r--r-- | source4/lib/tdb/common/tdb.c | 11 | ||||
-rw-r--r-- | source4/lib/tdb/include/tdb.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb.c b/source4/lib/tdb/common/tdb.c index 8d067ebecc..5810f46d56 100644 --- a/source4/lib/tdb/common/tdb.c +++ b/source4/lib/tdb/common/tdb.c @@ -428,3 +428,14 @@ int tdb_hash_size(struct tdb_context *tdb) { return tdb->header.hash_size; } + +size_t tdb_map_size(struct tdb_context *tdb) +{ + return tdb->map_size; +} + +int tdb_get_flags(struct tdb_context *tdb) +{ + return tdb->flags; +} + diff --git a/source4/lib/tdb/include/tdb.h b/source4/lib/tdb/include/tdb.h index 8a2110ba6e..4d29cece04 100644 --- a/source4/lib/tdb/include/tdb.h +++ b/source4/lib/tdb/include/tdb.h @@ -124,6 +124,8 @@ int tdb_transaction_cancel(struct tdb_context *tdb); int tdb_transaction_recover(struct tdb_context *tdb); int tdb_get_seqnum(struct tdb_context *tdb); int tdb_hash_size(struct tdb_context *tdb); +size_t tdb_map_size(struct tdb_context *tdb); +int tdb_get_flags(struct tdb_context *tdb); /* Low level locking functions: use with care */ int tdb_chainlock(struct tdb_context *tdb, TDB_DATA key); |