summaryrefslogtreecommitdiffstats
path: root/lib/tdb2/traverse.c
Commit message (Collapse)AuthorAgeFilesLines
* tdb2: add error conversion functions.Rusty Russell2011-09-141-4/+4
| | | | | | | | | | This clarifies the code a little, but also provides a more explicit mechanism which can be used to debug error handling (by introducing tdb_err_t and making it a pointer type). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit afa6d57b7d93fe4675a952f556eb462951baa257)
* tdb2: unify tdb1_wipe into tdb_wipe.Rusty Russell2011-09-141-0/+6
| | | | | | | Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit b2555a868e3ee58d1b31f9558e3623d49ed2b2f1)
* tdb2: unify tdb1_firstkey/tdb1_nextkey into tdb_firstkey/tdb_nextkey.Rusty Russell2011-09-141-0/+22
| | | | | | | Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 7366486e29e4f3d89a3e08fc114079d6441af850)
* tdb2: unify tdb1_traverse into tdb_traverseRusty Russell2011-09-141-0/+7
| | | | | | | | Switch on the TDB_VERSION1 flag; we now only do a tdb1_traverse_read on a read-only database, as there is no tdb2 equivalent. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit cc2d609dfca7192305ad477b8c2b52cfdc1aa9be)
* tdb2: add lib/tdb2 (from CCAN init-1161-g661d41f)Rusty Russell2011-06-201-0/+99
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>