logging.h 446 B

1234567891011121314151617
  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. extern bool suppress_logging;
  7. extern const char *log_prefix;
  8. extern unsigned tap_log_messages;
  9. extern union ntdb_attribute tap_log_attr;
  10. extern char *log_last;
  11. void tap_log_fn(struct ntdb_context *ntdb,
  12. enum ntdb_log_level level,
  13. enum NTDB_ERROR ecode,
  14. const char *message, void *priv);
  15. #endif /* NTDB_TEST_LOGGING_H */