diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-08 13:43:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-08 16:35:42 +0100 |
commit | 47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736 (patch) | |
tree | 5b1f5cbb74b0accc910985c373b9dc4fb41d7c1f /src/lua/lua_common.h | |
parent | f98bb456ab710bc3fa99cdbe5383f39c00dcd480 (diff) | |
download | rspamd-47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736.tar.gz rspamd-47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736.zip |
[Feature] Add mmap support to lua_text
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 6fdff5990..3f2fa6ba5 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -64,10 +64,12 @@ struct rspamd_lua_ip { rspamd_inet_addr_t *addr; }; +#define RSPAMD_TEXT_FLAG_OWN (1 << 0) +#define RSPAMD_TEXT_FLAG_MMAPED (1 << 1) struct rspamd_lua_text { const gchar *start; guint len; - gboolean own; + guint flags; }; struct rspamd_lua_url { |