]> git.ozlabs.org Git - ccan/commit - ccan/tdb2/private.h
tdb2: add a capability list from the header.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Nov 2011 01:39:18 +0000 (12:09 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Nov 2011 01:39:18 +0000 (12:09 +1030)
commit35f198de1851a7d57064546b7ced677b6fabee27
tree23def008bdb8590012824757f0efee6c983a85bd
parent79d603a5f73dfbb655d8d08f67eecb5f2da542d5
tdb2: add a capability list from the header.

This allows even more extensibility in future: in particular, the top
bits of each capability tell us what to do if we don't understand it:
fail the open, fail to open for write, or don't try to check the
format.

tdb_check needs to understand the capability list so it can know to
skip over it: each element in the list is prefixed with the type tag
and the length.
ccan/tdb2/check.c
ccan/tdb2/open.c
ccan/tdb2/private.h
ccan/tdb2/test/failtest_helper.h
ccan/tdb2/test/layout.c
ccan/tdb2/test/layout.h
ccan/tdb2/test/run-03-coalesce.c
ccan/tdb2/test/run-50-multiple-freelists.c
ccan/tdb2/test/run-capabilities.c [new file with mode: 0644]
tools/ccanlint/ccanlint.c