mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
9d897b0951
This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
438 B
C
18 lines
438 B
C
#ifndef TDB2_TEST_LOGGING_H
|
|
#define TDB2_TEST_LOGGING_H
|
|
#include "tdb2.h"
|
|
#include <stdbool.h>
|
|
#include <string.h>
|
|
|
|
extern bool suppress_logging;
|
|
extern const char *log_prefix;
|
|
extern unsigned tap_log_messages;
|
|
extern union tdb_attribute tap_log_attr;
|
|
extern char *log_last;
|
|
|
|
void tap_log_fn(struct tdb_context *tdb,
|
|
enum tdb_log_level level,
|
|
enum TDB_ERROR ecode,
|
|
const char *message, void *priv);
|
|
#endif /* TDB2_TEST_LOGGING_H */
|