| 65 | } |
| 66 | |
| 67 | static int |
| 68 | ts_lua_mgmt_get_counter(lua_State *L) |
| 69 | { |
| 70 | const char *name; |
| 71 | size_t name_len; |
| 72 | TSMgmtCounter counter_val; |
| 73 | |
| 74 | name = luaL_checklstring(L, 1, &name_len); |
| 75 | if (TS_SUCCESS == TSMgmtCounterGet(name, &counter_val)) { |
| 76 | lua_pushinteger(L, counter_val); |
| 77 | return 1; |
| 78 | } |
| 79 | |
| 80 | return 0; |
| 81 | } |
| 82 | |
| 83 | static int |
| 84 | ts_lua_mgmt_get_float(lua_State *L) |
nothing calls this directly
no test coverage detected