]> git.ozlabs.org Git - ccan/blob - ccan/tdb2/test/logging.h
tdb2: test: convert (non-invasive) run tests to api tests.
[ccan] / ccan / tdb2 / test / logging.h
1 #ifndef TDB2_TEST_LOGGING_H
2 #define TDB2_TEST_LOGGING_H
3 #include <ccan/tdb2/tdb2.h>
4 #include <stdbool.h>
5 #include <string.h>
6
7 extern bool suppress_logging;
8 extern const char *log_prefix;
9 extern unsigned tap_log_messages;
10 extern union tdb_attribute tap_log_attr;
11 extern char *log_last;
12
13 void tap_log_fn(struct tdb_context *tdb,
14                 enum tdb_log_level level,
15                 enum TDB_ERROR ecode,
16                 const char *message, void *priv);
17 #endif /* TDB2_TEST_LOGGING_H */