summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-04 01:04:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-04 01:04:40 +0000
commit118583499b9a7fa4ac0f713adb69d354105116e8 (patch)
tree8e3dc0f9a6b911d838f2ec967b2fef0db06032be
parentae1976cb267e3010d23d423e867155bc60391fd3 (diff)
downloadrspamd-118583499b9a7fa4ac0f713adb69d354105116e8.tar.gz
rspamd-118583499b9a7fa4ac0f713adb69d354105116e8.zip
Make lua_regexp structure public
-rw-r--r--src/lua/lua_common.h7
-rw-r--r--src/lua/lua_regexp.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 3aee6ea52..609838c13 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -72,6 +72,13 @@ struct rspamd_lua_url {
struct rspamd_url *url;
};
+struct rspamd_lua_regexp {
+ rspamd_regexp_t *re;
+ gchar *re_pattern;
+ gsize match_limit;
+ gint re_flags;
+};
+
/* Common utility functions */
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 594b42bbe..b878d2a8d 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -73,13 +73,6 @@ static const struct luaL_reg regexplib_f[] = {
rspamd_mempool_t *regexp_static_pool = NULL;
-struct rspamd_lua_regexp {
- rspamd_regexp_t *re;
- gchar *re_pattern;
- gsize match_limit;
- gint re_flags;
-};
-
static struct rspamd_lua_regexp *
lua_check_regexp (lua_State * L)
{