X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Flogging.h;h=502506d4253197fbc1079a8e07d80f54f125af2c;hb=e1fd1d9623ef2f944374d67b573a6f1cf7a9ed12;hp=c7a5f112a26d1b0bad99ea706e8122bf7fd94dc2;hpb=06e0037d97f5e1d83667ec40627cef862f3b7b85;p=ccan diff --git a/ccan/tdb2/test/logging.h b/ccan/tdb2/test/logging.h index c7a5f112..502506d4 100644 --- a/ccan/tdb2/test/logging.h +++ b/ccan/tdb2/test/logging.h @@ -1,10 +1,15 @@ #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; +void tap_log_fn(struct tdb_context *tdb, + enum tdb_log_level level, void *priv, + const char *message); #endif /* TDB2_TEST_LOGGING_H */