Mountain/Vine/Server/Notification/OutputChannelCreate.rs
1#![allow(non_snake_case)]
2//! Cocoon → Mountain `outputChannel.create` notification.
3//! Parallel wire name to `output.create` used by Cocoon's
4//! `SendToMountain` call sites. The two should converge to one in a
5//! future Cocoon refactor; for now Mountain handles both by routing
6//! into the same `sky://output/create` channel.
7
8use serde_json::Value;
9use tauri::Emitter;
10
11use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
12
13pub async fn OutputChannelCreate(Service:&MountainVinegRPCService, Parameter:&Value) {
14 let _ = Service.ApplicationHandle().emit("sky://output/create", Parameter);
15 dev_log!(
16 "output-verbose",
17 "[OutputChannel] create id={}",
18 Parameter.get("id").and_then(Value::as_str).unwrap_or("?")
19 );
20}