diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-16 20:06:29 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-16 20:06:29 +0300 |
commit | 1b1bcd6966f47a2568acee011dd4b9f18195d765 (patch) | |
tree | 219073936a703bd001699bc0ca4c70014068c26c /src/cfg_file.h | |
parent | b7046a0e6667e9c840b83acaf08f9ac117508eaa (diff) | |
download | rspamd-1b1bcd6966f47a2568acee011dd4b9f18195d765.tar.gz rspamd-1b1bcd6966f47a2568acee011dd4b9f18195d765.zip |
* Implement pre and post classify callbacks for checking specific statfiles for this task
TODO:
- add properties to get all parameters of input task
- add properties to statfile object
- add some normalization function for calling from classify process
- document changes
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index 43d424c70..bb07a40c5 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -169,6 +169,8 @@ struct classifier_config { struct classifier *classifier; /**< classifier interface */ struct tokenizer *tokenizer; /**< tokenizer used for classifier */ GHashTable *opts; /**< other options */ + GList *pre_callbacks; /**< list of callbacks that are called before classification */ + GList *post_callbacks; /**< list of callbacks that are called after classification */ }; /** |