1 #ifndef TDB2_TEST_LOGGING_H
2 #define TDB2_TEST_LOGGING_H
3 #include <ccan/tdb2/tdb2.h>
7 unsigned tap_log_messages;
9 void tap_log_fn(struct tdb_context *tdb,
10 enum tdb_debug_level level, void *priv,
11 const char *fmt, ...);
13 static inline bool data_equal(struct tdb_data a, struct tdb_data b)
15 if (a.dsize != b.dsize)
17 return memcmp(a.dptr, b.dptr, a.dsize) == 0;
19 #endif /* TDB2_TEST_LOGGING_H */