summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-15 15:08:29 +0100
committerVolker Lendecke <vl@samba.org>2012-04-20 13:42:40 +0200
commit61c97506e8ccb878d06edae72f4216ad58b96a9b (patch)
tree385628abecd54ca285beac4441a567cadf5db9a9 /source3/lib/dbwrap/dbwrap.h
parent8e5b11bc143e8532aeed504e47b881ce53411ce3 (diff)
downloadsamba-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.h5
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,