summaryrefslogtreecommitdiffstats
path: root/pigeonhole/src/testsuite/testsuite-log.h
blob: 335d0444b6cc64c52a80fdc03b281d7cb7abe7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef TESTSUITE_LOG_H
#define TESTSUITE_LOG_H

#include "sieve-common.h"

extern struct sieve_error_handler *testsuite_log_ehandler;
extern struct sieve_error_handler *testsuite_log_main_ehandler;

/*
 * Initialization
 */

void testsuite_log_init(bool log_stdout);
void testsuite_log_deinit(void);

/*
 * Access
 */

void testsuite_log_clear_messages(void);

struct sieve_stringlist *
testsuite_log_stringlist_create(const struct sieve_runtime_env *renv,
				int index);

#endif