]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Make lua_regexp structure public
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2015 01:04:40 +0000 (01:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2015 01:04:40 +0000 (01:04 +0000)
src/lua/lua_common.h
src/lua/lua_regexp.c

index 3aee6ea52565806b9be4f5552b650c86b2fe4c20..609838c134069f82e4cf84cbe2282434f34ec70d 100644 (file)
@@ -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 */
 
index 594b42bbee017891cf13b59f1ccc46b6ff12f2e5..b878d2a8d81bb544c26a3b506ecade7b149d154a 100644 (file)
@@ -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)
 {