virtualization-sys 0.1.1

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
//===----------------------------------------------------------------------===//
// `VZSerialPortConfiguration`, abstract: its object crosses by address.
//===----------------------------------------------------------------------===//

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

import Virtualization

func vz_serial_port_configuration_attachment(this: UnsafeRawPointer) -> UInt {
  bridging(retainedAddress: (bridging(borrowed: this) as VZSerialPortConfiguration).attachment)
}

/// `attachment` is any `VZSerialPortAttachment`, or `0` for `nil`.
func vz_serial_port_configuration_set_attachment(this: UnsafeRawPointer, attachment: UInt) {
  (bridging(borrowed: this) as VZSerialPortConfiguration).attachment = bridging(borrowedAddress: attachment)
}