From 474916b70c4bed3accd8592ff82aa2d6f90c8e8d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Mar 2008 16:08:21 +0100 Subject: dbwrap: add db_open_trans() This should be used when transactions are wanted. For now it's just a wrapper of db_open(), but this will change. metze Signed-off-by: Stefan Metzmacher (This used to be commit 74a070b8a24fea1009e557f711b76fc14e8961dc) --- source3/include/dbwrap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/include/dbwrap.h') diff --git a/source3/include/dbwrap.h b/source3/include/dbwrap.h index 095719a01d..654c7a4f7a 100644 --- a/source3/include/dbwrap.h +++ b/source3/include/dbwrap.h @@ -54,6 +54,11 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, int hash_size, int tdb_flags, int open_flags, mode_t mode); +struct db_context *db_open_trans(TALLOC_CTX *mem_ctx, + const char *name, + int hash_size, int tdb_flags, + int open_flags, mode_t mode); + struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx); struct db_context *db_open_tdb(TALLOC_CTX *mem_ctx, -- cgit