]> git.ozlabs.org Git - ccan/blobdiff - ccan/ntdb/test/logging.h
ntdb: next-generation trivial key-value database
[ccan] / ccan / ntdb / test / logging.h
diff --git a/ccan/ntdb/test/logging.h b/ccan/ntdb/test/logging.h
new file mode 100644 (file)
index 0000000..0336cca
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef NTDB_TEST_LOGGING_H
+#define NTDB_TEST_LOGGING_H
+#include "ntdb.h"
+#include <stdbool.h>
+#include <string.h>
+
+extern bool suppress_logging;
+extern const char *log_prefix;
+extern unsigned tap_log_messages;
+extern union ntdb_attribute tap_log_attr;
+extern char *log_last;
+
+void tap_log_fn(struct ntdb_context *ntdb,
+               enum ntdb_log_level level,
+               enum NTDB_ERROR ecode,
+               const char *message, void *priv);
+#endif /* NTDB_TEST_LOGGING_H */