diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-15 15:08:29 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-20 13:42:40 +0200 |
commit | 61c97506e8ccb878d06edae72f4216ad58b96a9b (patch) | |
tree | 385628abecd54ca285beac4441a567cadf5db9a9 /source3/lib/dbwrap/dbwrap.h | |
parent | 8e5b11bc143e8532aeed504e47b881ce53411ce3 (diff) | |
download | samba-61c97506e8ccb878d06edae72f4216ad58b96a9b.tar.gz samba-61c97506e8ccb878d06edae72f4216ad58b96a9b.tar.bz2 samba-61c97506e8ccb878d06edae72f4216ad58b96a9b.zip |
s3-dbwrap: Add dbwrap_set_stored_callback
This is a per-db function that is called whenever some record is modified
Diffstat (limited to 'source3/lib/dbwrap/dbwrap.h')
-rw-r--r-- | source3/lib/dbwrap/dbwrap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap.h b/source3/lib/dbwrap/dbwrap.h index ff41e647ef..3304bcf4a4 100644 --- a/source3/lib/dbwrap/dbwrap.h +++ b/source3/lib/dbwrap/dbwrap.h @@ -38,6 +38,11 @@ struct db_record *dbwrap_try_fetch_locked(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); struct db_context *dbwrap_record_get_db(struct db_record *rec); +void dbwrap_set_stored_callback( + struct db_context *db, + void (*cb)(struct db_context *db, struct db_record *rec, + void *private_data), + void *private_data); NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key); NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, |