tdb2: unify tdb1_check and tdb1_summary into tdb_check and tdb_summary.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
commitef92843f2c74ab9d4fa7f167a2182e5e8955df91
treee2066f5ba15b968d414555bb3c833641ec245ac7
parent6bc8ea012391198bc3898ae2937558b60dd55906
tdb2: unify tdb1_check and tdb1_summary into tdb_check and tdb_summary.

Switch on the TDB_VERSION1 flag.  Also, change tdb1_check's checkfn argument
to return an error code (and set tdb->last_error accordingly).
12 files changed:
ccan/tdb2/check.c
ccan/tdb2/private.h
ccan/tdb2/summary.c
ccan/tdb2/tdb1.h
ccan/tdb2/tdb1_check.c
ccan/tdb2/test/run-tdb1-check.c
ccan/tdb2/test/run-tdb1-corrupt.c
ccan/tdb2/test/run-tdb1-incompatible.c
ccan/tdb2/test/run-tdb1-oldhash.c
ccan/tdb2/test/run-tdb1-readonly-check.c
ccan/tdb2/test/run-tdb1-wronghash-fail.c
ccan/tdb2/test/tdb1-external-agent.c