| 48 | } |
| 49 | |
| 50 | static int |
| 51 | ts_lua_mgmt_get_int(lua_State *L) |
| 52 | { |
| 53 | const char *name; |
| 54 | size_t name_len; |
| 55 | TSMgmtInt int_val; |
| 56 | |
| 57 | name = luaL_checklstring(L, 1, &name_len); |
| 58 | |
| 59 | if (TS_SUCCESS == TSMgmtIntGet(name, &int_val)) { |
| 60 | lua_pushinteger(L, int_val); |
| 61 | return 1; |
| 62 | } |
| 63 | |
| 64 | return 0; |
| 65 | } |
| 66 | |
| 67 | static int |
| 68 | ts_lua_mgmt_get_counter(lua_State *L) |
nothing calls this directly
no test coverage detected