From f68a56ce8f38cc1768d8c2dca84f456f4ecfc625 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:50:13 +0930 Subject: tdb2: unify tdb1_store into tdb_store Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell (Imported from CCAN commit 98c754ffe65bc335f66161d6cc8705d4ea2710ec) --- lib/tdb2/private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/tdb2/private.h') diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index b7fd5959d1..e4800599ef 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -658,6 +658,9 @@ int tdb1_allrecord_unlock(struct tdb_context *tdb, int ltype); int tdb1_transaction_recover(struct tdb_context *tdb); int tdb1_transaction_cancel(struct tdb_context *tdb); +/* tdb1_tdb.c: */ +int tdb1_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); + /* tdb.c: */ enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb, enum TDB_ERROR ecode, -- cgit