(sieve_locus_t): New datatype.
(sieve_action_log_t): Changed type of the second argument.
Showing
1 changed file
with
7 additions
and
1 deletions
... | @@ -31,6 +31,11 @@ extern "C" { | ... | @@ -31,6 +31,11 @@ extern "C" { |
31 | 31 | ||
32 | typedef struct sieve_machine *sieve_machine_t; | 32 | typedef struct sieve_machine *sieve_machine_t; |
33 | 33 | ||
34 | typedef struct { | ||
35 | const char *source_file; | ||
36 | size_t source_line; | ||
37 | } sieve_locus_t; | ||
38 | |||
34 | typedef int (*sieve_handler_t) __PMT((sieve_machine_t mach, | 39 | typedef int (*sieve_handler_t) __PMT((sieve_machine_t mach, |
35 | list_t args, list_t tags)); | 40 | list_t args, list_t tags)); |
36 | typedef int (*sieve_printf_t) __PMT((void *data, const char *fmt, va_list ap)); | 41 | typedef int (*sieve_printf_t) __PMT((void *data, const char *fmt, va_list ap)); |
... | @@ -38,7 +43,7 @@ typedef int (*sieve_parse_error_t) __PMT((void *data, | ... | @@ -38,7 +43,7 @@ typedef int (*sieve_parse_error_t) __PMT((void *data, |
38 | const char *filename, int lineno, | 43 | const char *filename, int lineno, |
39 | const char *fmt, va_list ap)); | 44 | const char *fmt, va_list ap)); |
40 | typedef void (*sieve_action_log_t) __PMT((void *data, | 45 | typedef void (*sieve_action_log_t) __PMT((void *data, |
41 | const char *script, | 46 | const sieve_locus_t *locus, |
42 | size_t msgno, message_t msg, | 47 | size_t msgno, message_t msg, |
43 | const char *action, | 48 | const char *action, |
44 | const char *fmt, va_list ap)); | 49 | const char *fmt, va_list ap)); |
... | @@ -194,6 +199,7 @@ size_t sieve_get_message_num __P((sieve_machine_t mach)); | ... | @@ -194,6 +199,7 @@ size_t sieve_get_message_num __P((sieve_machine_t mach)); |
194 | int sieve_get_debug_level __P((sieve_machine_t mach)); | 199 | int sieve_get_debug_level __P((sieve_machine_t mach)); |
195 | ticket_t sieve_get_ticket __P((sieve_machine_t mach)); | 200 | ticket_t sieve_get_ticket __P((sieve_machine_t mach)); |
196 | mailer_t sieve_get_mailer __P((sieve_machine_t mach)); | 201 | mailer_t sieve_get_mailer __P((sieve_machine_t mach)); |
202 | int sieve_get_locus __P((sieve_machine_t mach, sieve_locus_t *)); | ||
197 | char *sieve_get_daemon_email __P((sieve_machine_t mach)); | 203 | char *sieve_get_daemon_email __P((sieve_machine_t mach)); |
198 | 204 | ||
199 | void sieve_set_error __P((sieve_machine_t mach, sieve_printf_t error_printer)); | 205 | void sieve_set_error __P((sieve_machine_t mach, sieve_printf_t error_printer)); | ... | ... |
-
Please register or sign in to post a comment