]> git.ozlabs.org Git - ccan/blob - ccan/ntdb/test/logging.h
Merge branch 'ntdb' of https://github.com/ddiss/ccan into ddiss-ntdb
[ccan] / ccan / ntdb / test / logging.h
1 #ifndef NTDB_TEST_LOGGING_H
2 #define NTDB_TEST_LOGGING_H
3 #include "ntdb.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 ntdb_attribute tap_log_attr;
11 extern char *log_last;
12
13 void tap_log_fn(struct ntdb_context *ntdb,
14                 enum ntdb_log_level level,
15                 enum NTDB_ERROR ecode,
16                 const char *message, void *priv);
17 #endif /* NTDB_TEST_LOGGING_H */