Prefix kiwmi_server methods with kiwmi_server

This commit is contained in:
buffet 2020-01-01 18:13:47 +00:00
parent 236c76df0e
commit 3e4fc2bf46

View file

@ -184,7 +184,7 @@ kiwmi_view_register(lua_State *L)
} }
static int static int
l_on(lua_State *L) l_kiwmi_server_on(lua_State *L)
{ {
luaL_checkudata(L, 1, "kiwmi_server"); // server luaL_checkudata(L, 1, "kiwmi_server"); // server
luaL_checktype(L, 2, LUA_TSTRING); // type luaL_checktype(L, 2, LUA_TSTRING); // type
@ -330,7 +330,7 @@ l_kiwmi_server_quit(lua_State *L)
} }
static int static int
l_view_under_cursor(lua_State *L) l_kiwmi_server_view_under_cursor(lua_State *L)
{ {
struct kiwmi_server *server = *(struct kiwmi_server **)luaL_checkudata(L, 1, "kiwmi_server"); struct kiwmi_server *server = *(struct kiwmi_server **)luaL_checkudata(L, 1, "kiwmi_server");
@ -362,9 +362,9 @@ l_view_under_cursor(lua_State *L)
} }
static const luaL_Reg kiwmi_server_methods[] = { static const luaL_Reg kiwmi_server_methods[] = {
{"on", l_on}, {"on", l_kiwmi_server_on},
{"quit", l_quit}, {"quit", l_kiwmi_server_quit},
{"view_under_cursor", l_view_under_cursor}, {"view_under_cursor", l_kiwmi_server_view_under_cursor},
{NULL, NULL}, {NULL, NULL},
}; };