summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-19 10:52:57 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:56 +0200
commit46370441b7bc9a205b13b07ab93b97f44bf34b78 (patch)
treea5e7203ee0329b8292191689c097fc50dfab685c
parentb257e83d898d1e848d3adbed540a7b209943ff34 (diff)
downloadsamba-46370441b7bc9a205b13b07ab93b97f44bf34b78.tar.gz
samba-46370441b7bc9a205b13b07ab93b97f44bf34b78.tar.bz2
samba-46370441b7bc9a205b13b07ab93b97f44bf34b78.zip
s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec
-rw-r--r--source3/lib/dbwrap/dbwrap.c5
-rw-r--r--source3/lib/dbwrap/dbwrap.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c
index e5a0dc61c4..af3cbb1ff9 100644
--- a/source3/lib/dbwrap/dbwrap.c
+++ b/source3/lib/dbwrap/dbwrap.c
@@ -118,6 +118,11 @@ NTSTATUS dbwrap_record_store(struct db_record *rec, TDB_DATA data, int flags)
return rec->store(rec, data, flags);
}
+NTSTATUS dbwrap_record_delete(struct db_record *rec)
+{
+ return rec->delete_rec(rec);
+}
+
TDB_DATA dbwrap_fetch(struct db_context *db, TALLOC_CTX *mem_ctx,
TDB_DATA key)
{
diff --git a/source3/lib/dbwrap/dbwrap.h b/source3/lib/dbwrap/dbwrap.h
index 6fa89bcb84..7c19371cdb 100644
--- a/source3/lib/dbwrap/dbwrap.h
+++ b/source3/lib/dbwrap/dbwrap.h
@@ -64,6 +64,7 @@ TDB_DATA dbwrap_record_get_key(const struct db_record *rec);
TDB_DATA dbwrap_record_get_value(const struct db_record *rec);
void *dbwrap_record_get_private_data(const struct db_record *rec);
NTSTATUS dbwrap_record_store(struct db_record *rec, TDB_DATA data, int flags);
+NTSTATUS dbwrap_record_delete(struct db_record *rec);
NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key);
NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key,