diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-25 15:03:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-25 17:46:11 +0000 |
commit | 92668308763bfefa568ffc7ddcf4d577556bc99f (patch) | |
tree | d2d3d368640262820b51e3adf0fdd153d49e4ba1 /src/lua/lua_common.h | |
parent | a0938d8ef20d506d30216febe0a15474689e518f (diff) | |
download | rspamd-92668308763bfefa568ffc7ddcf4d577556bc99f.tar.gz rspamd-92668308763bfefa568ffc7ddcf4d577556bc99f.zip |
Make lua_check_task public.
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 9fffa7127..c9ce21178 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -128,6 +128,11 @@ void rspamd_lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr); struct rspamd_lua_ip * lua_check_ip (lua_State * L, gint pos); /** + * Check for task at the specified position + */ +struct rspamd_task *lua_check_task (lua_State * L, gint pos); + +/** * Push ip address from a string (nil is pushed if a string cannot be converted) */ void rspamd_lua_ip_push_fromstring (lua_State *L, const gchar *ip_str); |