| 24 | static int ts_lua_vconn_get_fd(lua_State *L); |
| 25 | |
| 26 | void |
| 27 | ts_lua_inject_vconn_api(lua_State *L) |
| 28 | { |
| 29 | lua_newtable(L); |
| 30 | |
| 31 | lua_pushcfunction(L, ts_lua_vconn_disable_h2); |
| 32 | lua_setfield(L, -2, "disable_h2"); |
| 33 | |
| 34 | lua_pushcfunction(L, ts_lua_vconn_get_remote_addr); |
| 35 | lua_setfield(L, -2, "get_remote_addr"); |
| 36 | |
| 37 | lua_pushcfunction(L, ts_lua_vconn_get_fd); |
| 38 | lua_setfield(L, -2, "get_fd"); |
| 39 | |
| 40 | lua_setfield(L, -2, "vconn"); |
| 41 | } |
| 42 | |
| 43 | static int |
| 44 | ts_lua_vconn_disable_h2(lua_State *L) |
no outgoing calls
no test coverage detected