tdb2: implement tdb_exists and tdb_parse_record
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
commita97da100b00206544c7a68593b64a49f2b854f7e
tree980944d57bc23cfcc836c8e77da0742bcca1f11f
parent74b0109ebd2a30d57d19ae9a56f16c0f3b3637eb
tdb2: implement tdb_exists and tdb_parse_record

These are the same as the TDB1 functions; but note that there is no reliable
way to tell if tdb_exists() fails due to an error.  This simplifies the API,
but means you have to use tdb_fetch() if you really care.
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/run-14-exists.c [new file with mode: 0644]
ccan/tdb2/test/run-16-wipe_all.c [new file with mode: 0644]
ccan/tdb2/test/run-21-parse_record.c [new file with mode: 0644]
ccan/tdb2/traverse.c