From beab78097de6a53430bb16310e41b93d74546cb9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 15 Feb 2011 17:59:12 +0300 Subject: * Add ability to add descriptions for symbols --- src/filter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/filter.h') diff --git a/src/filter.h b/src/filter.h index 2540d95e9..2a1d97edd 100644 --- a/src/filter.h +++ b/src/filter.h @@ -51,13 +51,14 @@ struct metric_action { * Common definition of metric */ struct metric { - gchar *name; /**< name of metric */ + gchar *name; /**< name of metric */ gchar *func_name; /**< name of consolidation function */ metric_cons_func func; /**< c consolidation function */ double grow_factor; /**< grow factor for metric */ double required_score; /**< required score for this metric */ double reject_score; /**< reject score for this metric */ GHashTable *symbols; /**< weights of symbols in metric */ + GHashTable *descriptions; /**< descriptions of symbols in metric */ enum rspamd_metric_action action; /**< action to do by this metric by default */ GList *actions; /**< actions that can be performed by this metric */ }; -- cgit v1.2.3