vmnet Changes for Swift
vmnet
Removed interface_event_t.init(_: UInt32)
Removed interface_event_t.value
Removed operating_modes_t [struct]
Removed operating_modes_t.init(_: UInt32)
Removed operating_modes_t.value
Removed vmnet_return_t [struct]
Removed vmnet_return_t.init(_: UInt32)
Removed vmnet_return_t.value
Removed vmpktdesc.init()
Removed vmpktdesc.init(vm_pkt_size: Int, vm_pkt_iov: UnsafeMutablePointer<iovec>, vm_pkt_iovcnt: UInt32, vm_flags: UInt32)
Removed VMNET_BUFFER_EXHAUSTED
Removed VMNET_FAILURE
Removed VMNET_HOST_MODE
Removed VMNET_INTERFACE_PACKETS_AVAILABLE
Removed VMNET_INVALID_ACCESS
Removed VMNET_INVALID_ARGUMENT
Removed VMNET_MEM_FAILURE
Removed VMNET_PACKET_TOO_BIG
Removed VMNET_SETUP_INCOMPLETE
Removed VMNET_SHARED_MODE
Removed VMNET_SUCCESS
Removed VMNET_TOO_MANY_PACKETS
Added interface_event_t.init(rawValue: UInt32)
Added operating_modes_t [enum]
Added vmnet_return_t [enum]
Modified interface_event_t [struct]
| Declaration | Protocols | Introduction | |
|---|---|---|---|
| From | struct interface_event_t {
init(_ value: UInt32)
var value: UInt32
} | -- | OS X 10.10 |
| To | struct interface_event_t : OptionSetType {
init(rawValue rawValue: UInt32)
static var VMNET_INTERFACE_PACKETS_AVAILABLE: interface_event_t { get }
} | OptionSetType | OS X 10.11 |
Modified vmpktdesc [struct]
| Declaration | |
|---|---|
| From | struct vmpktdesc {
var vm_pkt_size: Int
var vm_pkt_iov: UnsafeMutablePointer<iovec>
var vm_pkt_iovcnt: UInt32
var vm_flags: UInt32
init()
init(vm_pkt_size vm_pkt_size: Int, vm_pkt_iov vm_pkt_iov: UnsafeMutablePointer<iovec>, vm_pkt_iovcnt vm_pkt_iovcnt: UInt32, vm_flags vm_flags: UInt32)
} |
| To | struct vmpktdesc {
var vm_pkt_size: Int
var vm_pkt_iov: UnsafeMutablePointer<iovec>
var vm_pkt_iovcnt: UInt32
var vm_flags: UInt32
} |
| Declaration | |
|---|---|
| From | func vmnet_interface_set_event_callback(_ interface: interface_ref, _ flags: interface_event_t, _ queue: dispatch_queue_t!, _ handler: ((interface_event_t, xpc_object_t!) -> Void)!) -> vmnet_return_t |
| To | func vmnet_interface_set_event_callback(_ interface: interface_ref, _ flags: interface_event_t, _ queue: dispatch_queue_t?, _ handler: ((interface_event_t, xpc_object_t) -> Void)?) -> vmnet_return_t |
| Declaration | |
|---|---|
| From | func vmnet_start_interface(_ interface_desc: xpc_object_t!, _ queue: dispatch_queue_t!, _ handler: ((vmnet_return_t, xpc_object_t!) -> Void)!) -> interface_ref |
| To | func vmnet_start_interface(_ interface_desc: xpc_object_t, _ queue: dispatch_queue_t, _ handler: (vmnet_return_t, xpc_object_t?) -> Void) -> interface_ref |
| Declaration | |
|---|---|
| From | func vmnet_stop_interface(_ interface: interface_ref, _ queue: dispatch_queue_t!, _ handler: ((vmnet_return_t) -> Void)!) -> vmnet_return_t |
| To | func vmnet_stop_interface(_ interface: interface_ref, _ queue: dispatch_queue_t, _ handler: (vmnet_return_t) -> Void) -> vmnet_return_t |