summaryrefslogtreecommitdiffstats
path: root/lib/tdb2/hash.c
Commit message (Collapse)AuthorAgeFilesLines
* tdb2: add error conversion functions.Rusty Russell2011-09-141-15/+16
| | | | | | | | | | 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_chainlock et al. into tdb_chainlockRusty Russell2011-09-141-0/+19
| | | | | | | Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit ceb2f3eacbad917ee990afbc3dd800bfb0607887)
* tdb2: make jenkins_hash function non-static, rename to tdb_jenkins_hash.Rusty Russell2011-09-141-0/+12
| | | | | | | | We're going to need access to it from tdb1_open, so expose it now. It's better in hash.c anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit c8f6f8c2dea76042f74c02eff048847e62adcca6)
* tdb2: add lib/tdb2 (from CCAN init-1161-g661d41f)Rusty Russell2011-06-201-0/+881
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>