Author: tridge Date: 2006-10-20 09:48:18 +0000 (Fri, 20 Oct 2006) New Revision: 19425
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19425 Log: two more tdb functions from samba3 Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb.c branches/SAMBA_4_0/source/lib/tdb/include/tdb.h Changeset: Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb.c =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/common/tdb.c 2006-10-20 08:14:38 UTC (rev 19424) +++ branches/SAMBA_4_0/source/lib/tdb/common/tdb.c 2006-10-20 09:48:18 UTC (rev 19425) @@ -428,3 +428,14 @@ { 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; +} + Modified: branches/SAMBA_4_0/source/lib/tdb/include/tdb.h =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/include/tdb.h 2006-10-20 08:14:38 UTC (rev 19424) +++ branches/SAMBA_4_0/source/lib/tdb/include/tdb.h 2006-10-20 09:48:18 UTC (rev 19425) @@ -124,6 +124,8 @@ 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);