X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftdb_private.h;h=4993ff811041e8d4fcdaf375a246a705eb9a0069;hb=e84f843dfeb798e66b32a212bb7ffb095eebd7aa;hp=e3ec695642d06263e79c62e8ed7ce98a5505ebb8;hpb=e1f11b7b1e39ceb092155ba742b34f0785d88d06;p=ccan diff --git a/ccan/tdb/tdb_private.h b/ccan/tdb/tdb_private.h index e3ec6956..4993ff81 100644 --- a/ccan/tdb/tdb_private.h +++ b/ccan/tdb/tdb_private.h @@ -49,6 +49,8 @@ #endif #include "tdb.h" +/* #define TDB_TRACE 1 */ + #if HAVE_GETPAGESIZE #define getpagesize() 0x2000 #endif @@ -225,6 +227,7 @@ int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off); int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off); +int tdb_transaction_cancel_internal(struct tdb_context *tdb); int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec);