summaryrefslogtreecommitdiff
path: root/src/host.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-25 02:07:23 -0300
committerGabriel Schneider <[email protected]>2026-08-25 09:42:07 -0300
commit6f48508aa08396bcf9dd4da2cab1d221bcc53f78 (patch)
tree83daec3db5ac27ea3172651df2b3e9cb62eddb4a /src/host.zig
parent28c70cabb6ceb7e5fecfd74f6984f5a995269f01 (diff)
downloadpardes-6f48508aa08396bcf9dd4da2cab1d221bcc53f78.tar.gz
pardes-6f48508aa08396bcf9dd4da2cab1d221bcc53f78.zip
acmefs: pardes --fs serves acme's control filesystem over raw Linux FUSE
Diffstat (limited to 'src/host.zig')
-rw-r--r--src/host.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host.zig b/src/host.zig
index d3e93d36..e44318da 100644
--- a/src/host.zig
+++ b/src/host.zig
@@ -107,6 +107,14 @@ pub const Host = struct {
/// completed and the core would apply it to whatever holds that id now.
pull_lsp: ?*const fn (ctx: ?*anyopaque, req: LspRequest) void = null,
pull_pipe: ?*const fn (ctx: ?*anyopaque, id: u32) void = null,
+ /// Hand one filesystem answer back to whoever asked for it (a FUSE
+ /// `write(2)` to /dev/fuse). `bytes` is the payload the core resolved
+ /// for this reply and is borrowed for the length of this call — it may
+ /// point straight into a pane's text, so a host that needs it later
+ /// copies it. A push and not a pull: the answer is already computed,
+ /// and a second host serving the same mount is not a thing that
+ /// happens (the transport that asked is the one holding the request).
+ push_fs_reply: ?*const fn (ctx: ?*anyopaque, reply: *const pardes.acmefs.Reply, bytes: []const u8) void = null,
};
};