From 11850e4605bc50e0b4aa07f8c46154fc01504646 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 2 Jan 2013 01:02:56 +0100 Subject: dbwrap: add dbwrap_is_persistent() Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- lib/dbwrap/dbwrap.c | 5 +++++ lib/dbwrap/dbwrap.h | 1 + 2 files changed, 6 insertions(+) (limited to 'lib/dbwrap') diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c index 0e0422c41b..15eb239c35 100644 --- a/lib/dbwrap/dbwrap.c +++ b/lib/dbwrap/dbwrap.c @@ -480,6 +480,11 @@ void dbwrap_db_id(struct db_context *db, const uint8_t **id, size_t *idlen) db->id(db, id, idlen); } +bool dbwrap_is_persistent(struct db_context *db) +{ + return db->persistent; +} + const char *dbwrap_name(struct db_context *db) { return db->name; diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 3b0d61c92c..e394296a9b 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -84,6 +84,7 @@ NTSTATUS dbwrap_transaction_start_nonblock(struct db_context *db); int dbwrap_transaction_commit(struct db_context *db); int dbwrap_transaction_cancel(struct db_context *db); void dbwrap_db_id(struct db_context *db, const uint8_t **id, size_t *idlen); +bool dbwrap_is_persistent(struct db_context *db); const char *dbwrap_name(struct db_context *db); /* The following definitions come from lib/dbwrap_util.c */ -- cgit