X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=30338d77abb51deee0e761307e01af588b035725;hb=b8e64e9346793164651a36eccb3c205077e5c91b;hp=f92d91fdce4b7e24563d7eba64cc6210e60578b9;hpb=ef92843f2c74ab9d4fa7f167a2182e5e8955df91;p=ccan diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index f92d91fd..30338d77 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -639,8 +639,10 @@ int tdb1_check(struct tdb_context *tdb, /* tdb1_open.c: */ int tdb1_new_database(struct tdb_context *tdb, - struct tdb_attribute_tdb1_hashsize *hashsize); -enum TDB_ERROR tdb1_open(struct tdb_context *tdb); + struct tdb_attribute_tdb1_hashsize *hashsize, + struct tdb_attribute_tdb1_max_dead *max_dead); +enum TDB_ERROR tdb1_open(struct tdb_context *tdb, + struct tdb_attribute_tdb1_max_dead *max_dead); /* tdb1_io.c: */ enum TDB_ERROR tdb1_probe_length(struct tdb_context *tdb); @@ -679,12 +681,19 @@ enum TDB_ERROR tdb1_parse_record(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *private_data), void *private_data); +void tdb1_increment_seqnum_nonblock(struct tdb_context *tdb); +int tdb1_get_seqnum(struct tdb_context *tdb); +int tdb1_wipe_all(struct tdb_context *tdb); /* tdb1_transaction.c: */ int tdb1_transaction_start(struct tdb_context *tdb); int tdb1_transaction_prepare_commit(struct tdb_context *tdb); int tdb1_transaction_commit(struct tdb_context *tdb); +/* tdb1_traverse.c: */ +TDB_DATA tdb1_firstkey(struct tdb_context *tdb); +TDB_DATA tdb1_nextkey(struct tdb_context *tdb, TDB_DATA key); + /* tdb.c: */ enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb, enum TDB_ERROR ecode,