diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-22 21:41:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-22 21:41:48 +0400 |
commit | b90267a71cc8cdc8b38675322ef9fa7a9cb5468c (patch) | |
tree | 3bff8af523d19ec9cff93134b067fc404795000d /src/expressions.h | |
parent | ed224e6a3530f54b5993e39066a8397d54e9517e (diff) | |
download | rspamd-b90267a71cc8cdc8b38675322ef9fa7a9cb5468c.tar.gz rspamd-b90267a71cc8cdc8b38675322ef9fa7a9cb5468c.zip |
* Rework thread pools locking logic to avoid global lua mutex usage.
Fixed several memory leaks with modern glib.
Fixed memory leak in dkim code.
Fixed a problem with static global variables in shared libraries.
Diffstat (limited to 'src/expressions.h')
-rw-r--r-- | src/expressions.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expressions.h b/src/expressions.h index 0c1576b36..6f42fa3e4 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -7,6 +7,7 @@ #define RSPAMD_EXPRESSIONS_H #include "config.h" +#include <lua.h> struct worker_task; struct rspamd_regexp; @@ -72,9 +73,10 @@ struct expression* parse_expression (memory_pool_t *pool, gchar *line); * Call specified fucntion and return boolean result * @param func function to call * @param task task object + * @param L lua specific state * @return TRUE or FALSE depending on function result */ -gboolean call_expression_function (struct expression_function *func, struct worker_task *task); +gboolean call_expression_function (struct expression_function *func, struct worker_task *task, lua_State *L); /** * Register specified function to rspamd internal functions list |