From 9140fca812063be69842a6c64030e32c65c9dff1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:56:13 +0930 Subject: tdb2: unify tdb1_chainlock et al. into tdb_chainlock Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell (Imported from CCAN commit ceb2f3eacbad917ee990afbc3dd800bfb0607887) --- lib/tdb2/private.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/tdb2/private.h') diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index e981372351..4132ac2949 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -652,8 +652,15 @@ enum TDB_ERROR tdb1_open(struct tdb_context *tdb); enum TDB_ERROR tdb1_probe_length(struct tdb_context *tdb); /* tdb1_lock.c: */ +int tdb1_allrecord_lock(struct tdb_context *tdb, int ltype, + enum tdb_lock_flags flags, bool upgradable); int tdb1_allrecord_unlock(struct tdb_context *tdb, int ltype); +int tdb1_chainlock(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainunlock(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainlock_read(struct tdb_context *tdb, TDB_DATA key); +int tdb1_chainunlock_read(struct tdb_context *tdb, TDB_DATA key); + /* tdb1_transaction.c: */ int tdb1_transaction_recover(struct tdb_context *tdb); int tdb1_transaction_cancel(struct tdb_context *tdb); -- cgit