summaryrefslogtreecommitdiffstats
path: root/lib/tdb2/test/logging.h
Commit message (Collapse)AuthorAgeFilesLines
* TDB2: Goodbye TDB2, Hello NTDB.Rusty Russell2012-06-191-17/+0
| | | | | | | | | | | This renames everything from tdb2 to ntdb: importantly, we no longer use the tdb_ namespace, so you can link against both ntdb and tdb if you want to. This also enables building of standalone ntdb by the autobuild script. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell2012-03-071-1/+1
| | | | | | | | | | This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: Hand error code to logging function.Rusty Russell2011-09-141-0/+1
| | | | | | | | | | | Since we've deprecated tdb_error() function (and it didn't work right from inside the logging function anyway, since we didn't set tdb->ecode yet) we need to hand it to the log function. (Imported from CCAN commit 6e3d9e8a66bf8b45150500f176452ee8e9ee9927) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: enforce TDB_CONVERTRusty Russell2011-09-141-0/+1
| | | | | | | | | | | If the caller actually specifies TDB_CONVERT, fail if the TDB does not need conversion. It's unusual for the user to specify TDB_CONVERT (it's auto-detected) but better to be strict. (Imported from CCAN commit 3e3ee8b0c1e77340ab9e8678c2d23646d8cdb627) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: add lib/tdb2 (from CCAN init-1161-g661d41f)Rusty Russell2011-06-201-0/+15
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>