X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Flogging.h;h=2dfea145c3370a8dc046448a65ee46774b150a70;hp=c7a5f112a26d1b0bad99ea706e8122bf7fd94dc2;hb=3d99c9334fe3067c88772547b9c06acec21616ea;hpb=06e0037d97f5e1d83667ec40627cef862f3b7b85 diff --git a/ccan/tdb2/test/logging.h b/ccan/tdb2/test/logging.h index c7a5f112..2dfea145 100644 --- a/ccan/tdb2/test/logging.h +++ b/ccan/tdb2/test/logging.h @@ -1,10 +1,17 @@ #ifndef TDB2_TEST_LOGGING_H #define TDB2_TEST_LOGGING_H #include -unsigned tap_log_messages; +#include +#include -void tap_log_fn(struct tdb_context *tdb, - enum tdb_debug_level level, void *priv, - const char *fmt, ...); +extern bool suppress_logging; +extern const char *log_prefix; +extern unsigned tap_log_messages; +extern union tdb_attribute tap_log_attr; +extern char *log_last; +void tap_log_fn(struct tdb_context *tdb, + enum tdb_log_level level, + enum TDB_ERROR ecode, + const char *message, void *priv); #endif /* TDB2_TEST_LOGGING_H */