diff options
| author | T <t@tjp.lol> | 2026-05-26 20:14:37 -0600 |
|---|---|---|
| committer | T <t@tjp.lol> | 2026-05-27 06:26:36 -0600 |
| commit | 1f0915edbe0213e8bc134922f10933468d35a172 (patch) | |
| tree | 11834769555c7037f3393ef8d98bf5841846144a /src/ping_tool.zig | |
| parent | b788eb05c6d194b91fdc141b6655e61ccaa76ddb (diff) | |
finish lua runtime makeover
- new multi-tool registration via ToolSource
- thread per source-or-standalone-tool
- switched to zig 0.16 Io threading interface
- cli: include `luv` package and run concurrent lua tools via libuv
- one single long-lived lua_State for the whole cli program
Diffstat (limited to 'src/ping_tool.zig')
| -rw-r--r-- | src/ping_tool.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ping_tool.zig b/src/ping_tool.zig index eb212af..d18bc02 100644 --- a/src/ping_tool.zig +++ b/src/ping_tool.zig @@ -35,9 +35,11 @@ const SCHEMA_JSON = /// nothing dereferences it. pub fn tool() panto.Tool { return .{ - .name = NAME, - .description = DESCRIPTION, - .schema_json = SCHEMA_JSON, + .decl = .{ + .name = NAME, + .description = DESCRIPTION, + .schema_json = SCHEMA_JSON, + }, .ctx = &ctx_sentinel, .vtable = &vtable, }; |
