virtualization-sys 0.1.2

FFI to Apple's Virtualization framework, through swift-bridge. Use the `virtualization` crate instead.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===----------------------------------------------------------------------===//
// `VZUSBMassStorageDevice`.
//===----------------------------------------------------------------------===//

// Function names are Rust's, which are snake_case.
// swift-format-ignore-file: AlwaysUseLowerCamelCase

import Virtualization

func vz_usb_mass_storage_device_init(configuration: VZUSBMassStorageDeviceConfiguration) -> VZUSBMassStorageDevice {
  VZUSBMassStorageDevice(configuration: configuration)
}

/// `object as? VZUSBMassStorageDevice`, for an abstract class's object.
func vz_usb_mass_storage_device_bridge_cast(object: UnsafeRawPointer) throws(BridgedNil) -> VZUSBMassStorageDevice {
  try bridging(bridging(borrowed: object) as NSObject as? VZUSBMassStorageDevice)
}