summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-01-02 01:02:56 +0100
committerMichael Adam <obnox@samba.org>2013-01-15 14:49:20 +0100
commit11850e4605bc50e0b4aa07f8c46154fc01504646 (patch)
tree13511f700eb82567540ba56425c908f1b59036bf /lib
parentd67911bafc0d098e67c8ad8d9b4bc49f184ff832 (diff)
downloadsamba-11850e4605bc50e0b4aa07f8c46154fc01504646.tar.gz
samba-11850e4605bc50e0b4aa07f8c46154fc01504646.tar.bz2
samba-11850e4605bc50e0b4aa07f8c46154fc01504646.zip
dbwrap: add dbwrap_is_persistent()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/dbwrap/dbwrap.c5
-rw-r--r--lib/dbwrap/dbwrap.h1
2 files changed, 6 insertions, 0 deletions
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 */