1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec

This commit is contained in:
Michael Adam 2011-08-19 10:52:57 +02:00
parent b257e83d89
commit 46370441b7
2 changed files with 6 additions and 0 deletions

View File

@ -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)
{

View File

@ -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,