From 945473aac0abffd8509bbeef3ed5a32737b7df51 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jun 2012 15:07:44 +0930 Subject: dbwrap: dbwrap_hash_size(). Implemented for ntdb and tdb; falls back to 0 for others. Signed-off-by: Rusty Russell --- lib/dbwrap/dbwrap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/dbwrap/dbwrap.h') 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); -- cgit