]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/logging.h
tdb2: allow multiple chain locks.
[ccan] / ccan / tdb2 / test / logging.h
index c7a5f112a26d1b0bad99ea706e8122bf7fd94dc2..d172f867fd218f4984d5061631bda9c3cb57ce4c 100644 (file)
@@ -1,10 +1,15 @@
 #ifndef TDB2_TEST_LOGGING_H
 #define TDB2_TEST_LOGGING_H
 #include <ccan/tdb2/tdb2.h>
-unsigned tap_log_messages;
+#include <stdbool.h>
+#include <string.h>
 
-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,
+               const char *message, void *priv);
 #endif /* TDB2_TEST_LOGGING_H */