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_http.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_http.c')
-rw-r--r-- | src/lua/lua_http.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 3ab057aee..8e6617ced 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -34,7 +34,7 @@ LUA_FUNCTION_DEF (http, make_get_request); static const struct luaL_reg httplib_m[] = { LUA_INTERFACE_DEF (http, make_post_request), LUA_INTERFACE_DEF (http, make_get_request), - {"__tostring", lua_class_tostring}, + {"__tostring", rspamd_lua_class_tostring}, {NULL, NULL} }; @@ -88,7 +88,7 @@ lua_http_push_error (gint code, struct lua_http_ud *ud) if (ud->callback) { lua_getglobal (ud->L, ud->callback); ptask = lua_newuserdata (ud->L, sizeof (struct rspamd_task *)); - lua_setclass (ud->L, "rspamd{task}", -1); + rspamd_lua_setclass (ud->L, "rspamd{task}", -1); *ptask = ud->task; num = 4; } @@ -131,7 +131,7 @@ lua_http_push_reply (f_str_t *in, struct lua_http_ud *ud) /* Push error */ lua_getglobal (ud->L, ud->callback); ptask = lua_newuserdata (ud->L, sizeof (struct rspamd_task *)); - lua_setclass (ud->L, "rspamd{task}", -1); + rspamd_lua_setclass (ud->L, "rspamd{task}", -1); *ptask = ud->task; num = 4; @@ -582,7 +582,7 @@ lua_http_make_post_request (lua_State *L) /* Check whether we have a task object */ - ptask = lua_check_class (L, 1, "rspamd{task}"); + ptask = rspamd_lua_check_class (L, 1, "rspamd{task}"); task = ptask ? *(ptask) : NULL; if (!task) { @@ -661,7 +661,7 @@ lua_http_make_get_request (lua_State *L) /* Check whether we have a task object */ - ptask = lua_check_class (L, 1, "rspamd{task}"); + ptask = rspamd_lua_check_class (L, 1, "rspamd{task}"); task = ptask ? *(ptask) : NULL; if (!task) { |