diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 17:15:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 17:15:16 +0100 |
commit | df48f709f804739d1b084174c46af04b10d2fede (patch) | |
tree | 2bb3270a4db81104bfd3c8abf9b19381e5d926b4 /src/lua/lua_ip.c | |
parent | ac1dfb0beccf74a9f3ec82dfc257ea326532370d (diff) | |
download | rspamd-df48f709f804739d1b084174c46af04b10d2fede.tar.gz rspamd-df48f709f804739d1b084174c46af04b10d2fede.zip |
Rework lua function names to avoid ambiguity.
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r-- | src/lua/lua_ip.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c index 3292d93e7..7dc94e582 100644 --- a/src/lua/lua_ip.c +++ b/src/lua/lua_ip.c @@ -209,7 +209,7 @@ lua_ip_from_string (lua_State *L) ip = g_slice_alloc (sizeof (struct rspamd_lua_ip)); ip->is_valid = rspamd_parse_inet_address (&ip->addr, ip_str); pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); - lua_setclass (L, "rspamd{ip}", -1); + rspamd_lua_setclass (L, "rspamd{ip}", -1); *pip = ip; } else { @@ -262,7 +262,7 @@ lua_ip_from_number (lua_State *L) ip->is_valid = TRUE; ip->addr.addr.s4.sin_addr.s_addr = htonl (src[0]); pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); - lua_setclass (L, "rspamd{ip}", -1); + rspamd_lua_setclass (L, "rspamd{ip}", -1); *pip = ip; } else if (lua_gettop (L) == 4 && lua_isnumber (L, 1)) { @@ -276,7 +276,7 @@ lua_ip_from_number (lua_State *L) ip->is_valid = TRUE; memcpy (&ip->addr.addr.s6.sin6_addr, src, sizeof (src)); pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); - lua_setclass (L, "rspamd{ip}", -1); + rspamd_lua_setclass (L, "rspamd{ip}", -1); *pip = ip; } else { @@ -329,7 +329,7 @@ lua_ip_is_valid (lua_State *L) } void -lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr) +rspamd_lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr) { struct rspamd_lua_ip *ip, **pip; @@ -343,12 +343,12 @@ lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr) memcpy (&ip->addr, addr, sizeof (ip->addr)); } pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); - lua_setclass (L, "rspamd{ip}", -1); + rspamd_lua_setclass (L, "rspamd{ip}", -1); *pip = ip; } void -lua_ip_push_fromstring (lua_State *L, const gchar *ip_str) +rspamd_lua_ip_push_fromstring (lua_State *L, const gchar *ip_str) { struct rspamd_lua_ip *ip, **pip; @@ -360,7 +360,7 @@ lua_ip_push_fromstring (lua_State *L, const gchar *ip_str) ip->is_valid = rspamd_parse_inet_address (&ip->addr, ip_str); pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); - lua_setclass (L, "rspamd{ip}", -1); + rspamd_lua_setclass (L, "rspamd{ip}", -1); *pip = ip; } } |