From 40b80d4b14b0e066ab755d17ed29129950727b14 Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Wed, 26 Aug 2026 19:02:58 +0300 Subject: [PATCH] refactor: the hub is neshub everywhere Six comments across nescope, neswire and nescapture still named nestri-guest-hub, plus one still naming nestri-protocol. Deferred from the import commits so the rename would read as one change rather than six unexplained edits inside otherwise-verbatim trees. Comments only. Realigned an ASCII box in encode.rs that the shorter name knocked crooked. --- apps/nescapture/src/encode.rs | 4 ++-- apps/nescope/src/input.rs | 4 ++-- apps/nescope/src/main.rs | 2 +- apps/neswire/src/bin/hub-stub.rs | 2 +- apps/neswire/src/main.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/nescapture/src/encode.rs b/apps/nescapture/src/encode.rs index 0349a97f..bd4a89cc 100644 --- a/apps/nescapture/src/encode.rs +++ b/apps/nescapture/src/encode.rs @@ -1,5 +1,5 @@ // ───────────────────────────────────────────────────────────────────────────── -// encode.rs — Vulkan Video hardware encoding + IPC transmission to nestri-guest-hub +// encode.rs — Vulkan Video hardware encoding + IPC transmission to neshub // // ┌─────────────────── Zero-copy GPU pipeline ──────────────────────────────┐ // │ │ @@ -13,7 +13,7 @@ // │ encoder.input_image()) BGRA/RGB10/FP16 │ // │ → NV12/P010/YUV444 │ // │ Encoder::encode(encoder.input_image()) ← Vulkan Video encode │ -// │ IPC send to nestri-guest-hub │ +// │ IPC send to neshub │ // └─────────────────────────────────────────────────────────────────────────┘ // // Environment variables diff --git a/apps/nescope/src/input.rs b/apps/nescope/src/input.rs index 08e77d69..6ed2a80d 100644 --- a/apps/nescope/src/input.rs +++ b/apps/nescope/src/input.rs @@ -32,7 +32,7 @@ use nesprotocol::input::{self as nestri_input, DecodedInput}; use crate::focus::KeyboardFocusTarget; use crate::state::NescopeState; -// ── Wire protocol constants (mirrors nestri-protocol/src/input.rs) ── +// ── Wire protocol constants (mirrors nesprotocol/src/input.rs) ── const WIRE_INPUT_KEY: u8 = 0; const WIRE_INPUT_MOUSE_MOVE: u8 = 1; const WIRE_INPUT_MOUSE_BUTTON: u8 = 2; @@ -304,7 +304,7 @@ pub fn process_input(event: InputEvent, state: &mut NescopeState) { // Wire-protocol decoder // --------------------------------------------------------------------------- -/// Decode a single input event from the nestri guest-hub wire protocol +/// Decode a single input event from the neshub wire protocol /// and convert it to an [`InputEvent`] for the compositor seat. /// /// Uses the shared [`nesprotocol::input::decode_input_event`] and maps: diff --git a/apps/nescope/src/main.rs b/apps/nescope/src/main.rs index 1cce9c59..2f972087 100644 --- a/apps/nescope/src/main.rs +++ b/apps/nescope/src/main.rs @@ -337,7 +337,7 @@ fn main() { } // ── Input IPC source ───────────────────────────────────────────────── - // Connect to the nestri-guest-hub input socket and feed events into the + // Connect to the neshub input socket and feed events into the // compositor seat. Reconnection is handled in the idle callback. let ipc_path = args.input_ipc.clone(); match input_ipc::InputIpcSource::connect(&ipc_path) { diff --git a/apps/neswire/src/bin/hub-stub.rs b/apps/neswire/src/bin/hub-stub.rs index 1ce15bb3..b1262dff 100644 --- a/apps/neswire/src/bin/hub-stub.rs +++ b/apps/neswire/src/bin/hub-stub.rs @@ -1,4 +1,4 @@ -//! A stand-in for nestri-guest-hub's audio IPC listener. +//! A stand-in for neshub's audio IPC listener. //! //! neswire's only output is a Unix datagram socket that the hub binds, so //! running it outside a guest means having nothing to talk to: it retries diff --git a/apps/neswire/src/main.rs b/apps/neswire/src/main.rs index 7a719c95..67671758 100644 --- a/apps/neswire/src/main.rs +++ b/apps/neswire/src/main.rs @@ -5,7 +5,7 @@ use clap::Parser; #[derive(Parser, Debug)] struct Args { - /// Path for the audio IPC socket (neswire → nestri-guest-hub) + /// Path for the audio IPC socket (neswire → neshub) #[arg( long, env = "NESWIRE_IPC_PATH",