mirror of
https://github.com/nestriness/nestri.git
synced 2026-09-20 01:35:19 +03:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user