diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-05 13:03:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-05 13:03:09 +0000 |
commit | ca6f7e1de911f557aea95996ee0de4a5e781d1b7 (patch) | |
tree | 2f9288428d739918015ecc7f84d3c87d4c8b9702 /src/libmime/filter.h | |
parent | cd01e044ae181a5dc22c8e7a7dca015bbeb03e55 (diff) | |
download | rspamd-ca6f7e1de911f557aea95996ee0de4a5e781d1b7.tar.gz rspamd-ca6f7e1de911f557aea95996ee0de4a5e781d1b7.zip |
[Rework] Use hash tables for symbols options
Diffstat (limited to 'src/libmime/filter.h')
-rw-r--r-- | src/libmime/filter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/filter.h b/src/libmime/filter.h index 6c61f5d6f..99e9c78ae 100644 --- a/src/libmime/filter.h +++ b/src/libmime/filter.h @@ -19,7 +19,7 @@ struct rspamd_classifier_config; */ struct symbol { double score; /**< symbol's score */ - GList *options; /**< list of symbol's options */ + GHashTable *options; /**< list of symbol's options */ const gchar *name; struct rspamd_symbol_def *def; /**< symbol configuration */ }; @@ -57,7 +57,7 @@ struct metric_result * rspamd_create_metric_result (struct rspamd_task *task, void rspamd_task_insert_result (struct rspamd_task *task, const gchar *symbol, double flag, - GList *opts); + const gchar *opts); /** * Insert a single result to task @@ -70,7 +70,7 @@ void rspamd_task_insert_result (struct rspamd_task *task, void rspamd_task_insert_result_single (struct rspamd_task *task, const gchar *symbol, double flag, - GList *opts); + const gchar *opts); /** * Default consolidation function for metric, it get all symbols and multiply symbol |