mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-09 07:25:38 +02:00
16 lines
583 B
Swift
16 lines
583 B
Swift
import Virtualization
|
|
|
|
protocol Platform: Codable {
|
|
func os() -> OS
|
|
func bootLoader(nvramURL: URL) throws -> VZBootLoader
|
|
func platform(nvramURL: URL, needsNestedVirtualization: Bool) throws -> VZPlatformConfiguration
|
|
func graphicsDevice(vmConfig: VMConfig) -> VZGraphicsDeviceConfiguration
|
|
func keyboards() -> [VZKeyboardConfiguration]
|
|
func pointingDevices() -> [VZPointingDeviceConfiguration]
|
|
}
|
|
|
|
protocol PlatformSuspendable: Platform {
|
|
func pointingDevicesSuspendable() -> [VZPointingDeviceConfiguration]
|
|
func keyboardsSuspendable() -> [VZKeyboardConfiguration]
|
|
}
|