{
struct db_record *rec;
- rec = db->fetch_locked(db, mem_ctx, key);
+ rec = dbwrap_fetch_locked(db, mem_ctx, key);
if (rec == NULL) {
return NT_STATUS_UNSUCCESSFUL;
}
int res;
NTSTATUS status;
- status = db->fetch(db, talloc_tos(), key, &data);
+ status = dbwrap_fetch(db, talloc_tos(), key, &data);
if (!NT_STATUS_IS_OK(status)) {
return -1;
}
static int delete_record(struct db_record *rec, void *data)
{
- NTSTATUS status = rec->delete_rec(rec);
+ NTSTATUS status = dbwrap_record_delete(rec);
return NT_STATUS_IS_OK(status) ? 0 : -1;
}
struct db_record *rec;
NTSTATUS status;
- rec = db->fetch_locked(db, talloc_tos(), key);
+ rec = dbwrap_fetch_locked(db, talloc_tos(), key);
if (rec == NULL) {
return NT_STATUS_NO_MEMORY;
}
- status = rec->store(rec, data, flags);
+ status = dbwrap_record_store(rec, data, flags);
TALLOC_FREE(rec);
return status;
}
struct db_record *rec;
NTSTATUS status;
- rec = db->fetch_locked(db, talloc_tos(), key);
+ rec = dbwrap_fetch_locked(db, talloc_tos(), key);
if (rec == NULL) {
return NT_STATUS_NO_MEMORY;
}
- status = rec->delete_rec(rec);
+ status = dbwrap_record_delete(rec);
TALLOC_FREE(rec);
return status;
}