]> source.dussan.org Git - rspamd.git/commitdiff
Make lua_check_ip function public.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Feb 2015 14:59:00 +0000 (14:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Feb 2015 17:46:11 +0000 (17:46 +0000)
src/lua/lua_common.h
src/lua/lua_ip.c

index 7c532df4e87faf9a1f3d574378825a5ebde80a29..9fffa7127b9a39350e5d5618f15c6d39680fdf9d 100644 (file)
@@ -122,6 +122,11 @@ void rspamd_free_lua_locked (struct lua_locked_state *st);
  */
 void rspamd_lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr);
 
+/**
+ * Return lua ip structure at the specified address
+ */
+struct rspamd_lua_ip * lua_check_ip (lua_State * L, gint pos);
+
 /**
  * Push ip address from a string (nil is pushed if a string cannot be converted)
  */
index 7dea2bfcce6b1b65e015b613252da6fd801c0d8f..7cd74c73420a6a4c61aef498993cc9aa32ed72a9 100644 (file)
@@ -212,7 +212,7 @@ lua_ip_new (lua_State *L, struct rspamd_lua_ip *old)
        return ip;
 }
 
-static struct rspamd_lua_ip *
+struct rspamd_lua_ip *
 lua_check_ip (lua_State * L, gint pos)
 {
        void *ud = luaL_checkudata (L, pos, "rspamd{ip}");