43
43
(struct sieve_error_handler *ehandler, pool_t pool, unsigned int max_errors);
45
45
void sieve_error_handler_init_from_parent
46
(struct sieve_error_handler *ehandler, pool_t pool,
46
(struct sieve_error_handler *ehandler, pool_t pool,
47
47
struct sieve_error_handler *parent);
53
53
static inline void sieve_direct_verror
54
(struct sieve_error_handler *ehandler, const char *location,
54
(struct sieve_error_handler *ehandler, const char *location,
55
55
const char *fmt, va_list args)
57
57
if ( ehandler->parent != NULL || sieve_errors_more_allowed(ehandler) ) {
58
58
if ( ehandler->verror != NULL )
59
59
ehandler->verror(ehandler, location, fmt, args);
61
61
if ( ehandler->pool != NULL )
62
62
ehandler->errors++;
66
66
static inline void sieve_direct_vwarning
67
(struct sieve_error_handler *ehandler, const char *location,
67
(struct sieve_error_handler *ehandler, const char *location,
68
68
const char *fmt, va_list args)
70
if ( ehandler->vwarning != NULL )
70
if ( ehandler->vwarning != NULL )
71
71
ehandler->vwarning(ehandler, location, fmt, args);
73
73
if ( ehandler->pool != NULL )
77
77
static inline void sieve_direct_vinfo
78
(struct sieve_error_handler *ehandler, const char *location,
78
(struct sieve_error_handler *ehandler, const char *location,
79
79
const char *fmt, va_list args)
81
81
if ( ehandler->parent != NULL || ehandler->log_info ) {
82
if ( ehandler->vinfo != NULL )
82
if ( ehandler->vinfo != NULL )
83
83
ehandler->vinfo(ehandler, location, fmt, args);
87
87
static inline void sieve_direct_vdebug
88
(struct sieve_error_handler *ehandler, const char *location,
88
(struct sieve_error_handler *ehandler, const char *location,
89
89
const char *fmt, va_list args)
91
91
if ( ehandler->parent != NULL || ehandler->log_info ) {
92
if ( ehandler->vdebug != NULL )
92
if ( ehandler->vdebug != NULL )
93
93
ehandler->vdebug(ehandler, location, fmt, args);
97
97
static inline void sieve_direct_error
98
(struct sieve_error_handler *ehandler, const char *location,
98
(struct sieve_error_handler *ehandler, const char *location,
99
99
const char *fmt, ...)
102
102
va_start(args, fmt);
104
104
sieve_direct_verror(ehandler, location, fmt, args);
109
109
static inline void sieve_direct_warning
110
(struct sieve_error_handler *ehandler, const char *location,
110
(struct sieve_error_handler *ehandler, const char *location,
111
111
const char *fmt, ...)
114
114
va_start(args, fmt);
116
116
sieve_direct_vwarning(ehandler, location, fmt, args);
121
121
static inline void sieve_direct_info
122
(struct sieve_error_handler *ehandler, const char *location,
122
(struct sieve_error_handler *ehandler, const char *location,
123
123
const char *fmt, ...)
126
126
va_start(args, fmt);
128
128
sieve_direct_vinfo(ehandler, location, fmt, args);