]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/logging.h
tdb2: tdb_deq: inline helper for comparing two struct tdb_data
[ccan] / ccan / tdb2 / test / logging.h
index c7a5f112a26d1b0bad99ea706e8122bf7fd94dc2..502506d4253197fbc1079a8e07d80f54f125af2c 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, void *priv,
+               const char *message);
 #endif /* TDB2_TEST_LOGGING_H */