diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-25 12:42:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-25 12:42:13 +0100 |
commit | 23f831e0c58959e22c24ecd2bbd21a8a91183823 (patch) | |
tree | b0238dbea53bead8715a833203b24d788219e81c /src/lua/lua_common.h | |
parent | 6dd5ad342c865f057573e1510df113650bcfe570 (diff) | |
download | rspamd-23f831e0c58959e22c24ecd2bbd21a8a91183823.tar.gz rspamd-23f831e0c58959e22c24ecd2bbd21a8a91183823.zip |
[Feature] Implement finish scripts for worker processes
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 2ec235485..1fefdc2cb 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -354,5 +354,15 @@ gsize lua_logger_out_type (lua_State *L, gint pos, gchar *outbuf, */ void *rspamd_lua_check_udata (lua_State *L, gint pos, const gchar *classname); +/** + * Call finishing script with the specified task + * @param L + * @param sc + * @param task + */ +void lua_call_finish_script (lua_State *L, struct + rspamd_config_post_load_script *sc, + struct rspamd_task *task); + #endif /* WITH_LUA */ #endif /* RSPAMD_LUA_H */ |