Commit b435f982 b435f98236650d4a1dd6f4023d0fa3b8f04fd7ac by Sergey Poznyakoff

(sieve_test_lookup)

(sieve_action_lookup,sieve_register_test)
(sieve_register_action,sieve_register_comparator)
(sieve_comparator_lookup,sieve_require_comparator)
(sieve_get_comparator): Accept the pointer to sieve machine as
first argument.
1 parent a8e98469
...@@ -118,25 +118,36 @@ sieve_value_t *sieve_value_create __P((sieve_data_type type, void *data)); ...@@ -118,25 +118,36 @@ sieve_value_t *sieve_value_create __P((sieve_data_type type, void *data));
118 void sieve_slist_destroy __P((list_t *plist)); 118 void sieve_slist_destroy __P((list_t *plist));
119 119
120 /* Symbol space functions */ 120 /* Symbol space functions */
121 sieve_register_t *sieve_test_lookup __P((const char *name)); 121 sieve_register_t *sieve_test_lookup __P((sieve_machine_t mach,
122 sieve_register_t *sieve_action_lookup __P((const char *name)); 122 const char *name));
123 int sieve_register_test __P((const char *name, sieve_handler_t handler, 123 sieve_register_t *sieve_action_lookup __P((sieve_machine_t mach,
124 const char *name));
125 int sieve_register_test __P((sieve_machine_t mach,
126 const char *name, sieve_handler_t handler,
124 sieve_data_type *arg_types, 127 sieve_data_type *arg_types,
125 sieve_tag_group_t *tags, int required)); 128 sieve_tag_group_t *tags, int required));
126 int sieve_register_action __P((const char *name, sieve_handler_t handler, 129 int sieve_register_action __P((sieve_machine_t mach,
130 const char *name, sieve_handler_t handler,
127 sieve_data_type *arg_types, 131 sieve_data_type *arg_types,
128 sieve_tag_group_t *tags, int required)); 132 sieve_tag_group_t *tags, int required));
129 int sieve_register_comparator __P((const char *name, 133 int sieve_register_comparator __P((sieve_machine_t mach,
134 const char *name,
130 int required, 135 int required,
131 sieve_comparator_t is, 136 sieve_comparator_t is,
132 sieve_comparator_t contains, 137 sieve_comparator_t contains,
133 sieve_comparator_t matches, 138 sieve_comparator_t matches,
134 sieve_comparator_t regex)); 139 sieve_comparator_t regex));
135 sieve_comparator_t sieve_comparator_lookup __P((const char *name, 140 int sieve_require_comparator __P((sieve_machine_t mach, const char *name));
141
142 sieve_comparator_t sieve_comparator_lookup __P((sieve_machine_t mach,
143 const char *name,
136 int matchtype)); 144 int matchtype));
137 145
138 sieve_comparator_t sieve_get_comparator __P((list_t tags)); 146 sieve_comparator_t sieve_get_comparator __P((sieve_machine_t mach,
147 list_t tags));
148
139 void sieve_require __P((list_t slist)); 149 void sieve_require __P((list_t slist));
150 int sieve_tag_lookup __P((list_t taglist, char *name, sieve_value_t **arg));
140 151
141 /* Operations in value lists */ 152 /* Operations in value lists */
142 sieve_value_t *sieve_value_get __P((list_t vlist, size_t index)); 153 sieve_value_t *sieve_value_get __P((list_t vlist, size_t index));
......