]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: save openhook, allow tdb_get_attribute() on it.
[ccan] / ccan / tdb2 / private.h
index efc3a98d8cf34ff67e2709018bc6681ef006182b..4d0dfd775de13f7c2770397fa20ab5bd057f956d 100644 (file)
@@ -362,6 +362,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;