X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=3366aea2d16c09c91d11ec4b115dab1b3eaca0a3;hp=69fd40fce91fd295d2e868d569d60e6e804ecf4a;hb=b24f8e2ae5ac22fc2e5dbfebebf9c5fa2f338588;hpb=39b9d9ef8c05224b5f2685003160f4092fbd7045 diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 69fd40fc..3366aea2 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -382,6 +382,14 @@ struct tdb_methods { /* hash.c: */ void tdb_hash_init(struct tdb_context *tdb); +int first_in_hash(struct tdb_context *tdb, + struct traverse_info *tinfo, + TDB_DATA *kbuf, size_t *dlen); + +int next_in_hash(struct tdb_context *tdb, + struct traverse_info *tinfo, + TDB_DATA *kbuf, size_t *dlen); + /* Hash random memory. */ uint64_t tdb_hash(struct tdb_context *tdb, const void *ptr, size_t len); @@ -538,14 +546,6 @@ bool tdb_has_expansion_lock(struct tdb_context *tdb); /* If it needs recovery, grab all the locks and do it. */ int tdb_lock_and_recover(struct tdb_context *tdb); -/* traverse.c: */ -int first_in_hash(struct tdb_context *tdb, int ltype, - struct traverse_info *tinfo, - TDB_DATA *kbuf, size_t *dlen); -int next_in_hash(struct tdb_context *tdb, int ltype, - struct traverse_info *tinfo, - TDB_DATA *kbuf, size_t *dlen); - /* transaction.c: */ int tdb_transaction_recover(struct tdb_context *tdb); bool tdb_needs_recovery(struct tdb_context *tdb);