diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 15:07:44 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:17 +0200 |
commit | 945473aac0abffd8509bbeef3ed5a32737b7df51 (patch) | |
tree | 1a01de9fd747aade6fbcc3ae00545f3be7bbc415 /lib/dbwrap/dbwrap.h | |
parent | e92cb556fdb5faee71f614475aaade846dcd0aed (diff) | |
download | samba-945473aac0abffd8509bbeef3ed5a32737b7df51.tar.gz samba-945473aac0abffd8509bbeef3ed5a32737b7df51.tar.bz2 samba-945473aac0abffd8509bbeef3ed5a32737b7df51.zip |
dbwrap: dbwrap_hash_size().
Implemented for ntdb and tdb; falls back to 0 for others.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/dbwrap/dbwrap.h')
-rw-r--r-- | lib/dbwrap/dbwrap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 796475d3e2..30c24fedb3 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -76,6 +76,8 @@ NTSTATUS dbwrap_parse_record(struct db_context *db, TDB_DATA key, int dbwrap_wipe(struct db_context *db); int dbwrap_check(struct db_context *db); int dbwrap_get_seqnum(struct db_context *db); +/* Returns 0 if unknown. */ +int dbwrap_hash_size(struct db_context *db); int dbwrap_transaction_start(struct db_context *db); NTSTATUS dbwrap_transaction_start_nonblock(struct db_context *db); int dbwrap_transaction_commit(struct db_context *db); |