From 75dedacfbeab1fea281d1bce124b920dcf878844 Mon Sep 17 00:00:00 2001 From: t Date: Sun, 7 Jun 2026 21:56:51 -0600 Subject: further libpanto public API name cleanup --- libpanto/src/tool_source.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libpanto/src/tool_source.zig') diff --git a/libpanto/src/tool_source.zig b/libpanto/src/tool_source.zig index bf1f5a1..d5bc716 100644 --- a/libpanto/src/tool_source.zig +++ b/libpanto/src/tool_source.zig @@ -36,6 +36,7 @@ const tool = @import("tool.zig"); /// single dispatch path. pub const ToolDecl = tool.ToolDecl; pub const ResultPart = tool.ResultPart; +pub const ResultParts = tool.ResultParts; /// One pending invocation passed to `invoke_batch`. Slices borrowed from /// the caller for the duration of the call. @@ -49,9 +50,10 @@ pub const Call = struct { /// Result for a single call. Mirrors the success/error split of /// `Tool.invoke`'s return shape. Owned by the caller-supplied allocator. pub const CallResult = union(enum) { - /// Owned parts (slice + each part's bytes), freed by libpanto after - /// assembling the ToolResult block (see `tool.freeResultParts`). - ok: []ResultPart, + /// Owned parts (the `ResultParts` slice + each part's bytes), freed by + /// libpanto after assembling the ToolResult block (see + /// `tool.ResultParts.deinit`). + ok: ResultParts, err: anyerror, }; -- cgit v1.3