diff options
author | Michael Adam <obnox@samba.org> | 2011-08-19 10:51:27 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:56 +0200 |
commit | b257e83d898d1e848d3adbed540a7b209943ff34 (patch) | |
tree | b2ae5d1460de927b19dee90ea0a505a76df85745 /source3/lib | |
parent | bfed62c1695391076c1d82b312030adca8d971e5 (diff) | |
download | samba-b257e83d898d1e848d3adbed540a7b209943ff34.tar.gz samba-b257e83d898d1e848d3adbed540a7b209943ff34.tar.bz2 samba-b257e83d898d1e848d3adbed540a7b209943ff34.zip |
s3:dbwrap: add dbwrap_record_store(), a wrapper for record->store
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap.c | 5 | ||||
-rw-r--r-- | source3/lib/dbwrap/dbwrap.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c index 75d38b5920..e5a0dc61c4 100644 --- a/source3/lib/dbwrap/dbwrap.c +++ b/source3/lib/dbwrap/dbwrap.c @@ -113,6 +113,11 @@ void *dbwrap_record_get_private_data(const struct db_record *rec) return rec->private_data; } +NTSTATUS dbwrap_record_store(struct db_record *rec, TDB_DATA data, int flags) +{ + return rec->store(rec, data, flags); +} + 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 cf2a41f309..6fa89bcb84 100644 --- a/source3/lib/dbwrap/dbwrap.h +++ b/source3/lib/dbwrap/dbwrap.h @@ -63,6 +63,7 @@ struct db_context { 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_delete(struct db_context *db, TDB_DATA key); NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, |