lm_connection.c
changeset 1 64a857d6b81b
parent 0 84fdfb0344c9
child 4 5770be2d5f3f
equal deleted inserted replaced
0:84fdfb0344c9 1:64a857d6b81b
   295 /// Returns string, describing connection state.
   295 /// Returns string, describing connection state.
   296 /// R: connection state
   296 /// R: connection state
   297 static int llm_connection_status (lua_State *L)
   297 static int llm_connection_status (lua_State *L)
   298 {
   298 {
   299 	llm_connection_t *connection = luaL_checklm_connection (L, 1);
   299 	llm_connection_t *connection = luaL_checklm_connection (L, 1);
   300 	luaL_pushenum (L, lm_connection_get_state (connection->connection), llm_connection_state)
   300 	luaL_pushenum (L, lm_connection_get_state (connection->connection), llm_connection_state);
   301 	lua_remove (L, -2);
   301 	lua_remove (L, -2);
   302 	return 1;
   302 	return 1;
   303 }
   303 }
   304 
   304 
   305 /// connection:send
   305 /// connection:send