(sieve_vprintf_t): Removed.
(sieve_parse_error_t): New data type. (sieve_compile): Changed prototype declaration. (sieve_get_data,sieve_get_message,sieve_get_message_num) (sieve_get_debug_level,sieve_mailbox,sieve_disass) (sieve_machine_init,sieve_machine_set_error) (sieve_machine_set_parse_error): New functions.
Showing
1 changed file
with
23 additions
and
5 deletions
... | @@ -24,7 +24,9 @@ typedef struct sieve_machine sieve_machine_t; | ... | @@ -24,7 +24,9 @@ typedef struct sieve_machine sieve_machine_t; |
24 | typedef int (*sieve_handler_t) __P((sieve_machine_t *mach, | 24 | typedef int (*sieve_handler_t) __P((sieve_machine_t *mach, |
25 | list_t args, list_t tags)); | 25 | list_t args, list_t tags)); |
26 | typedef int (*sieve_printf_t) __P((void *data, const char *fmt, va_list ap)); | 26 | typedef int (*sieve_printf_t) __P((void *data, const char *fmt, va_list ap)); |
27 | typedef int (*sieve_vprintf_t) __P((void *data, const char *fmt, va_list ap)); | 27 | typedef int (*sieve_parse_error_t) __P((void *data, |
28 | const char *filename, int lineno, | ||
29 | const char *fmt, va_list ap)); | ||
28 | 30 | ||
29 | typedef enum { | 31 | typedef enum { |
30 | SVT_VOID, | 32 | SVT_VOID, |
... | @@ -76,10 +78,7 @@ void *sieve_prealloc __P((list_t *pool, void *ptr, size_t size)); | ... | @@ -76,10 +78,7 @@ void *sieve_prealloc __P((list_t *pool, void *ptr, size_t size)); |
76 | void sieve_pfree __P((list_t *pool, void *ptr)); | 78 | void sieve_pfree __P((list_t *pool, void *ptr)); |
77 | char *sieve_pstrdup __P((list_t *pool, const char *str)); | 79 | char *sieve_pstrdup __P((list_t *pool, const char *str)); |
78 | 80 | ||
79 | int sieve_compile __P((sieve_machine_t *mach, const char *name, void *data, | 81 | int sieve_compile __P((sieve_machine_t *mach, const char *name)); |
80 | sieve_printf_t errfn)); | ||
81 | void sieve_set_debug __P((sieve_machine_t *mach, sieve_printf_t debug, | ||
82 | int level)); | ||
83 | 82 | ||
84 | sieve_value_t * sieve_value_create __P((sieve_data_type type, void *data)); | 83 | sieve_value_t * sieve_value_create __P((sieve_data_type type, void *data)); |
85 | 84 | ||
... | @@ -96,3 +95,22 @@ void sieve_slist_destroy __P((list_t *plist)); | ... | @@ -96,3 +95,22 @@ void sieve_slist_destroy __P((list_t *plist)); |
96 | void sieve_require __P((list_t slist)); | 95 | void sieve_require __P((list_t slist)); |
97 | 96 | ||
98 | void sieve_abort __P((sieve_machine_t *mach)); | 97 | void sieve_abort __P((sieve_machine_t *mach)); |
98 | |||
99 | void *sieve_get_data __P((sieve_machine_t *mach)); | ||
100 | message_t sieve_get_message __P((sieve_machine_t *mach)); | ||
101 | size_t sieve_get_message_num __P((sieve_machine_t *mach)); | ||
102 | int sieve_get_debug_level __P((sieve_machine_t *mach)); | ||
103 | |||
104 | void sieve_error __P((sieve_machine_t *mach, const char *fmt, ...)); | ||
105 | void sieve_debug __P((sieve_machine_t *mach, const char *fmt, ...)); | ||
106 | |||
107 | int sieve_mailbox __P((sieve_machine_t *mach, mailbox_t mbox)); | ||
108 | int sieve_disass __P((sieve_machine_t *mach)); | ||
109 | |||
110 | void sieve_machine_init __P((sieve_machine_t *mach, void *data)); | ||
111 | void sieve_machine_set_error __P((sieve_machine_t *mach, | ||
112 | sieve_printf_t error_printer)); | ||
113 | void sieve_machine_set_parse_error __P((sieve_machine_t *mach, | ||
114 | sieve_parse_error_t p)); | ||
115 | void sieve_machine_set_debug __P((sieve_machine_t *mach, | ||
116 | sieve_printf_t debug, int level)); | ... | ... |
-
Please register or sign in to post a comment