diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-13 01:09:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-13 01:09:09 +0100 |
commit | 5edc7624cee30676fc91be2759ca5a9bc31e54ee (patch) | |
tree | 87e3ae2847f341ade21e13663f2577826dd5b4a1 /src/cfg_xml.h | |
parent | 29c04315424483ba6d033d1811254528c94e9ec5 (diff) | |
download | rspamd-5edc7624cee30676fc91be2759ca5a9bc31e54ee.tar.gz rspamd-5edc7624cee30676fc91be2759ca5a9bc31e54ee.zip |
Refactor metric actions handling.
Use array of actions instead of a linked list to speed up processing.
* Removed required_score, reject_score and action in metric config,
now REJECT is the only default action for a metric.
Diffstat (limited to 'src/cfg_xml.h')
-rw-r--r-- | src/cfg_xml.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg_xml.h b/src/cfg_xml.h index c4d992c14..c2930c365 100644 --- a/src/cfg_xml.h +++ b/src/cfg_xml.h @@ -116,6 +116,9 @@ gboolean xml_handle_uint16 (struct config_file *cfg, struct rspamd_xml_userdata /* Flags */ gboolean xml_handle_boolean (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHashTable *attrs, gchar *data, gpointer user_data, gpointer dest_struct, gint offset); +/* For deprecated attributes */ +gboolean xml_handle_deprecated (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHashTable *attrs, gchar *data, gpointer user_data, gpointer dest_struct, gint offset); + /* Specific params */ /* Options specific */ gboolean options_handle_nameserver (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHashTable *attrs, gchar *data, gpointer user_data, gpointer dest_struct, gint offset); |