aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-17 14:01:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-17 14:01:14 +0100
commit811f87cfb831002144704a3091b683fbeb25d5ec (patch)
tree835031b4676a2ad47f4d3b533ab55fb49970b99c /src/lua/lua_common.h
parentba3a394052b2639b3366a1c0aec2fbd5fff1e662 (diff)
downloadrspamd-811f87cfb831002144704a3091b683fbeb25d5ec.tar.gz
rspamd-811f87cfb831002144704a3091b683fbeb25d5ec.zip
[Minor] Rework headers extracting API
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 6c64c76d4..838e0fe7a 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -208,18 +208,22 @@ struct rspamd_lua_ip * lua_check_ip (lua_State * L, gint pos);
struct rspamd_lua_text * lua_check_text (lua_State * L, gint pos);
+enum rspamd_lua_task_header_type {
+ RSPAMD_TASK_HEADER_PUSH_SIMPLE = 0,
+ RSPAMD_TASK_HEADER_PUSH_RAW,
+ RSPAMD_TASK_HEADER_PUSH_FULL,
+ RSPAMD_TASK_HEADER_PUSH_COUNT,
+};
gint rspamd_lua_push_header (lua_State *L,
- struct rspamd_mime_header *h,
- gboolean full,
- gboolean raw);
+ struct rspamd_mime_header *h,
+ enum rspamd_lua_task_header_type how);
/**
* Push specific header to lua
*/
gint rspamd_lua_push_header_array (lua_State *L,
- GPtrArray *hdrs,
- gboolean full,
- gboolean raw);
+ GPtrArray *hdrs,
+ enum rspamd_lua_task_header_type how);
/**
* Check for task at the specified position