aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/filter.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-05 13:03:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-05 13:03:09 +0000
commitca6f7e1de911f557aea95996ee0de4a5e781d1b7 (patch)
tree2f9288428d739918015ecc7f84d3c87d4c8b9702 /src/libmime/filter.h
parentcd01e044ae181a5dc22c8e7a7dca015bbeb03e55 (diff)
downloadrspamd-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.h6
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