summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-04 11:58:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-04 12:06:18 +0100
commit2e43b3e2be1d7d0cf677b965e4484742a581b292 (patch)
tree75359dbc55483803186006d26fa40d26c1c4324b /src/lua/lua_common.h
parent5e59527bb11dfd2e5a9c439c6957cf6e9df57256 (diff)
downloadrspamd-2e43b3e2be1d7d0cf677b965e4484742a581b292.tar.gz
rspamd-2e43b3e2be1d7d0cf677b965e4484742a581b292.zip
[Feature] Add task:headers_foreach function
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index ecf46d32e..141d614b8 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -87,6 +87,7 @@ struct rspamd_lua_regexp {
struct rspamd_map;
struct lua_map_callback_data;
struct radix_tree_compressed;
+struct rspamd_mime_header;
enum rspamd_lua_map_type {
RSPAMD_LUA_MAP_RADIX = 0,
@@ -190,15 +191,18 @@ struct rspamd_lua_ip * lua_check_ip (lua_State * L, gint pos);
struct rspamd_lua_text * lua_check_text (lua_State * L, gint pos);
+
+gint rspamd_lua_push_header (lua_State *L,
+ struct rspamd_mime_header *h,
+ gboolean full,
+ gboolean raw);
/**
* Push specific header to lua
*/
-gint rspamd_lua_push_header (lua_State * L,
- GPtrArray *hdrs,
- const gchar *name,
- gboolean strong,
- gboolean full,
- gboolean raw);
+gint rspamd_lua_push_header_array (lua_State *L,
+ GPtrArray *hdrs,
+ gboolean full,
+ gboolean raw);
/**
* Check for task at the specified position