MCPcopy Create free account
hub / github.com/78/tenbox / SetDisplaySize

Method SetDisplaySize

src/daemon/runtime_manager.cpp:966–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966bool RuntimeManager::SetDisplaySize(const std::string& vm_id, uint32_t width, uint32_t height) {
967 auto session = FindSession(vm_id);
968 if (!session) return false;
969 ipc::Message message;
970 message.channel = ipc::Channel::kDisplay;
971 message.kind = ipc::Kind::kRequest;
972 message.type = "display.set_size";
973 message.vm_id = vm_id;
974 message.fields["width"] = std::to_string(width);
975 message.fields["height"] = std::to_string(height);
976 return SendRuntime(session, message);
977}
978
979bool RuntimeManager::ApplyForwards(const std::string& vm_id) {
980 auto session = FindSession(vm_id);

Callers 2

CreateRemoteSessionMethod · 0.45
ResizeRemoteSessionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected