diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-23 16:26:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-23 16:26:55 +0000 |
commit | 82612bf153debaff5a11e5542caca454e921eeaf (patch) | |
tree | da3a5c9e7fcb90855543af1d36b0d437c88a960e /src/libstat/stat_api.h | |
parent | 2b1f046085b35e685fad03a88c827eee1f483093 (diff) | |
download | rspamd-82612bf153debaff5a11e5542caca454e921eeaf.tar.gz rspamd-82612bf153debaff5a11e5542caca454e921eeaf.zip |
Refactor structures names.
Diffstat (limited to 'src/libstat/stat_api.h')
-rw-r--r-- | src/libstat/stat_api.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstat/stat_api.h b/src/libstat/stat_api.h index 0e2bf86b8..2dbf19372 100644 --- a/src/libstat/stat_api.h +++ b/src/libstat/stat_api.h @@ -25,6 +25,7 @@ #include "config.h" #include "task.h" +#include <lua.h> /** * @file stat_api.h @@ -42,7 +43,7 @@ void rspamd_stat_init (struct rspamd_config *cfg); * @param task * @return TRUE if task has been classified */ -gboolean rspamd_stat_classify (struct rspamd_task *task, GError **err); +gboolean rspamd_stat_classify (struct rspamd_task *task, lua_State *L, GError **err); /** @@ -51,7 +52,8 @@ gboolean rspamd_stat_classify (struct rspamd_task *task, GError **err); * @param spam if TRUE learn spam, otherwise learn ham * @return TRUE if task has been learned */ -gboolean rspamd_stat_learn (struct rspamd_task *task, gboolean spam, GError **err); +gboolean rspamd_stat_learn (struct rspamd_task *task, gboolean spam, lua_State *L, + GError **err); void rspamd_stat_unload (void); |