diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:18:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:18:13 +0930 |
commit | 617c1fcfa476d65320dc2c14b21016b6b438c090 (patch) | |
tree | 7a5560477526214b1b39f126feda3e97e5e3bb20 /lib/tdb2/private.h | |
parent | 73e4f35e3d4dd7043a140355e4cd0f10f54c7337 (diff) | |
download | samba-617c1fcfa476d65320dc2c14b21016b6b438c090.tar.gz samba-617c1fcfa476d65320dc2c14b21016b6b438c090.tar.bz2 samba-617c1fcfa476d65320dc2c14b21016b6b438c090.zip |
tdb2: save openhook, allow tdb_get_attribute() on it.
This makes it easy to call it again after a fork(), such as for
re-establishing the CLEAR_IF_FIRST files locks.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 937d0babe99dcd315040a9e48430140e63e4a7df)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r-- | lib/tdb2/private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index 163649953b..d7db41bf74 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -374,6 +374,10 @@ struct tdb_context { tdb_off_t ftable_off; unsigned int ftable; + /* Our open hook, if any. */ + enum TDB_ERROR (*openhook)(int fd, void *data); + void *openhook_data; + /* IO methods: changes for transactions. */ const struct tdb_methods *methods; |