summaryrefslogtreecommitdiffstats
path: root/src/lua-rspamd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 17:57:59 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 17:57:59 +0400
commitdd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (patch)
treeab8bfcf6c21bd8a47f49b9f9331378e6454e90cf /src/lua-rspamd.h
parentc72912310c575a5ba7e7e50a5fdd425f3a4e4dbc (diff)
downloadrspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.tar.gz
rspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.zip
* Add message handling functions to lua API
* Add ability to add lua code in config with .lua and .endlua * Add consolidation functions support that are written in perl or lua
Diffstat (limited to 'src/lua-rspamd.h')
-rw-r--r--src/lua-rspamd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua-rspamd.h b/src/lua-rspamd.h
index a99a121a3..0d0b2a693 100644
--- a/src/lua-rspamd.h
+++ b/src/lua-rspamd.h
@@ -2,9 +2,6 @@
#define RSPAMD_LUA_H
#include "config.h"
-#include <lua.h>
-#include <lauxlib.h>
-#include <lualib.h>
struct uri;
struct worker_task;
@@ -17,5 +14,7 @@ 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);
+double lua_consolidation_func (struct worker_task *task, const char *metric_name, const char *function_name);
+void add_luabuf (const char *line);
#endif