summaryrefslogtreecommitdiff
path: root/lib/tdb2/private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:58:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:58:13 +0930
commit5d9dd8d541a761e0af2c8d50ee55485f2cef3e01 (patch)
tree292d92329072b4e5e4e091544ca499903bcba276 /lib/tdb2/private.h
parent014ca657e600ee2b3b4dc9d2ef482d050cd0917d (diff)
downloadsamba-5d9dd8d541a761e0af2c8d50ee55485f2cef3e01.tar.gz
samba-5d9dd8d541a761e0af2c8d50ee55485f2cef3e01.tar.bz2
samba-5d9dd8d541a761e0af2c8d50ee55485f2cef3e01.zip
tdb2: unify tdb1_transaction_start etc. into tdb_transaction_start.
Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6bc8ea012391198bc3898ae2937558b60dd55906)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r--lib/tdb2/private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h
index 2bb144646a..67bc97dad1 100644
--- a/lib/tdb2/private.h
+++ b/lib/tdb2/private.h
@@ -683,6 +683,11 @@ enum TDB_ERROR tdb1_parse_record(struct tdb_context *tdb, TDB_DATA key,
void *private_data),
void *private_data);
+/* tdb1_transaction.c: */
+int tdb1_transaction_start(struct tdb_context *tdb);
+int tdb1_transaction_prepare_commit(struct tdb_context *tdb);
+int tdb1_transaction_commit(struct tdb_context *tdb);
+
/* tdb.c: */
enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb,
enum TDB_ERROR ecode,