diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 18:30:40 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 18:30:40 +0300 |
commit | 89a83f2ef6c2358fe45faac5b15da6344fa7728c (patch) | |
tree | 54afb9d99c14830db4aef6a0490a92b82c1cd089 /src/lua-rspamd.h | |
parent | 4e3304bed44a8c275710db3d7ae7387430a52193 (diff) | |
download | rspamd-89a83f2ef6c2358fe45faac5b15da6344fa7728c.tar.gz rspamd-89a83f2ef6c2358fe45faac5b15da6344fa7728c.zip |
* Add initial LUA filters support
Diffstat (limited to 'src/lua-rspamd.h')
-rw-r--r-- | src/lua-rspamd.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lua-rspamd.h b/src/lua-rspamd.h new file mode 100644 index 000000000..a99a121a3 --- /dev/null +++ b/src/lua-rspamd.h @@ -0,0 +1,21 @@ +#ifndef RSPAMD_LUA_H +#define RSPAMD_LUA_H + +#include "config.h" +#include <lua.h> +#include <lauxlib.h> +#include <lualib.h> + +struct uri; +struct worker_task; +struct config_file; + +void init_lua_filters (struct config_file *cfg); + +int lua_call_header_filter (const char *function, struct worker_task *task); +int lua_call_mime_filter (const char *function, struct worker_task *task); +int lua_call_message_filter (const char *function, struct worker_task *task); +int lua_call_url_filter (const char *function, struct worker_task *task); +int lua_call_chain_filter (const char *function, struct worker_task *task, int *marks, unsigned int number); + +#endif |