From: Vsevolod Stakhov Date: Fri, 4 Dec 2015 01:04:40 +0000 (+0000) Subject: Make lua_regexp structure public X-Git-Tag: 1.1.0~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=118583499b9a7fa4ac0f713adb69d354105116e8;p=thirdparty%2Frspamd.git Make lua_regexp structure public --- diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 3aee6ea525..609838c134 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 594b42bbee..b878d2a8d8 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) {