| 964 | } |
| 965 | |
| 966 | bool 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 | |
| 979 | bool RuntimeManager::ApplyForwards(const std::string& vm_id) { |
| 980 | auto session = FindSession(vm_id); |
no outgoing calls
no test coverage detected