summaryrefslogtreecommitdiff
path: root/dev/Host.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
committerGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
commit0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch)
treef2e288668decded9276ebc45907f16d651b06f9e /dev/Host.zig
parent2ab05b536bc3b063666b5aaab497157adc2a9120 (diff)
parentbf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff)
downloadpardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz
pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/Host.zig')
-rw-r--r--dev/Host.zig28
1 files changed, 14 insertions, 14 deletions
diff --git a/dev/Host.zig b/dev/Host.zig
index 1834e52e..24df3895 100644
--- a/dev/Host.zig
+++ b/dev/Host.zig
@@ -24,30 +24,30 @@ pub const VTable = struct {
/// for the daemon to attach again (daemon.zig).
detach: ?*const fn (ctx: ?*anyopaque) void = null,
/// Adopt: the shells a dead session left, asked of the daemon.
- adopt: ?*const fn (ctx: ?*anyopaque, pane: u8) void = null,
+ adopt: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null,
/// Upgrade: this process exec'd as the pardes installed since, at
/// the step's end (upgrade.zig); `pane` hears why if it cannot be.
- upgrade: ?*const fn (ctx: ?*anyopaque, pane: u8) void = null,
+ upgrade: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null,
/// Whether a newer pardes is installed at the path this process
/// started from, to be said once (upgrade.zig): asked at a focus-in.
newer_build: ?*const fn (ctx: ?*anyopaque) bool = null,
- spawn: ?*const fn (ctx: ?*anyopaque, pane: u8, cwd: []const u8) void = null,
- pty_write: ?*const fn (ctx: ?*anyopaque, pane: u8, bytes: []const u8) void = null,
- pty_resize: ?*const fn (ctx: ?*anyopaque, pane: u8, cols: u16, rows: u16) void = null,
- pty_signal: ?*const fn (ctx: ?*anyopaque, pane: u8, sig: pardes.PtySignal) void = null,
- close_pty: ?*const fn (ctx: ?*anyopaque, pane: u8) void = null,
- tty_taken: ?*const fn (ctx: ?*anyopaque, pane: u8) bool = null,
+ spawn: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, cwd: []const u8) void = null,
+ pty_write: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, bytes: []const u8) void = null,
+ pty_resize: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, cols: u16, rows: u16) void = null,
+ pty_signal: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, sig: pardes.PtySignal) void = null,
+ close_pty: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null,
+ tty_taken: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) bool = null,
/// The name of the program holding the tty, when it is not the
/// shell (host_io.foregroundName), in `buf`.
- fg_name: ?*const fn (ctx: ?*anyopaque, pane: u8, buf: []u8) ?[]const u8 = null,
+ fg_name: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, buf: []u8) ?[]const u8 = null,
/// Answered at once, not queued as an effect: Kill asks while the
/// job it saw running is still the one in the tty (host_io.killJob).
- kill_job: ?*const fn (ctx: ?*anyopaque, pane: u8) bool = null,
- write_file: ?*const fn (ctx: ?*anyopaque, pane: u8, path: []const u8, bytes: []const u8) void = null,
+ kill_job: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) bool = null,
+ write_file: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, path: []const u8, bytes: []const u8) void = null,
write_dump: ?*const fn (ctx: ?*anyopaque, bytes: []const u8) void = null,
- watch_file: ?*const fn (ctx: ?*anyopaque, pane: u8, path: []const u8, on: bool, mode: pardes.WatchMode) void = null,
+ watch_file: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, path: []const u8, on: bool, mode: pardes.WatchMode) void = null,
watch_theme: ?*const fn (ctx: ?*anyopaque, generation: u32, on: bool) void = null,
- dump_themes: ?*const fn (ctx: ?*anyopaque, pane: u8) void = null,
+ dump_themes: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null,
set_clipboard: ?*const fn (ctx: ?*anyopaque, text: []const u8) void = null,
read_clipboard: ?*const fn (ctx: ?*anyopaque) void = null,
open_link: ?*const fn (ctx: ?*anyopaque, url: []const u8) void = null,
@@ -65,5 +65,5 @@ pub const VTable = struct {
/// Run job `token` of the pane in slot `pane` (whose serial is
/// `serial`) on a worker (`KindJob`), answering with the `job` event;
/// absent, it runs on the loop.
- job: ?*const fn (ctx: ?*anyopaque, pane: u8, serial: u32, token: u32) void = null,
+ job: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, serial: u32, token: u32) void = null,
};