git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e513a3b
)
s3-dbwrap: Add dbwrap_set_stored_callback
author
Volker Lendecke
<vl@samba.org>
Wed, 15 Feb 2012 14:08:29 +0000
(15:08 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 10 May 2012 16:33:53 +0000
(18:33 +0200)
This is a per-db function that is called whenever some record is modified
source3/lib/dbwrap/dbwrap.h
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap.h
b/source3/lib/dbwrap/dbwrap.h
index 3304bcf4a466d69053ff2c04094708eebfc65ffd..28eed273d79ce963d3c0627f47a7ce9273fbddd0 100644
(file)
--- a/
source3/lib/dbwrap/dbwrap.h
+++ b/
source3/lib/dbwrap/dbwrap.h
@@
-44,6
+44,12
@@
void dbwrap_set_stored_callback(
void *private_data),
void *private_data);
+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,
TDB_DATA data, int flags);