summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-20 12:26:59 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-20 12:26:59 +0000
commitb435f98236650d4a1dd6f4023d0fa3b8f04fd7ac (patch)
treefbe614c9b72e643a71e33a1ba0748a59a3a709c2
parenta8e98469ab9c18ccd81b503611610f78f8eb4368 (diff)
downloadmailutils-b435f98236650d4a1dd6f4023d0fa3b8f04fd7ac.tar.gz
mailutils-b435f98236650d4a1dd6f4023d0fa3b8f04fd7ac.tar.bz2
(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.
-rw-r--r--include/mailutils/libsieve.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/include/mailutils/libsieve.h b/include/mailutils/libsieve.h
index c67506e64..0c0c4108f 100644
--- a/include/mailutils/libsieve.h
+++ b/include/mailutils/libsieve.h
@@ -118,25 +118,36 @@ sieve_value_t *sieve_value_create __P((sieve_data_type type, void *data));
void sieve_slist_destroy __P((list_t *plist));
/* Symbol space functions */
-sieve_register_t *sieve_test_lookup __P((const char *name));
-sieve_register_t *sieve_action_lookup __P((const char *name));
-int sieve_register_test __P((const char *name, sieve_handler_t handler,
+sieve_register_t *sieve_test_lookup __P((sieve_machine_t mach,
+ const char *name));
+sieve_register_t *sieve_action_lookup __P((sieve_machine_t mach,
+ const char *name));
+int sieve_register_test __P((sieve_machine_t mach,
+ const char *name, sieve_handler_t handler,
sieve_data_type *arg_types,
sieve_tag_group_t *tags, int required));
-int sieve_register_action __P((const char *name, sieve_handler_t handler,
+int sieve_register_action __P((sieve_machine_t mach,
+ const char *name, sieve_handler_t handler,
sieve_data_type *arg_types,
sieve_tag_group_t *tags, int required));
-int sieve_register_comparator __P((const char *name,
+int sieve_register_comparator __P((sieve_machine_t mach,
+ const char *name,
int required,
sieve_comparator_t is,
sieve_comparator_t contains,
sieve_comparator_t matches,
sieve_comparator_t regex));
-sieve_comparator_t sieve_comparator_lookup __P((const char *name,
+int sieve_require_comparator __P((sieve_machine_t mach, const char *name));
+
+sieve_comparator_t sieve_comparator_lookup __P((sieve_machine_t mach,
+ const char *name,
int matchtype));
-sieve_comparator_t sieve_get_comparator __P((list_t tags));
+sieve_comparator_t sieve_get_comparator __P((sieve_machine_t mach,
+ list_t tags));
+
void sieve_require __P((list_t slist));
+int sieve_tag_lookup __P((list_t taglist, char *name, sieve_value_t **arg));
/* Operations in value lists */
sieve_value_t *sieve_value_get __P((list_t vlist, size_t index));

Return to:

Send suggestions and report system problems to the System administrator.