objc2_virtualization/generated/VZXHCIController.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 /// Class representing a USB XHCI controller in a virtual machine.
10 ///
11 /// VZXHCIController should not be instantiated directly.
12 /// In order to create a runtime VZXHCIController object, the usbControllers property of
13 /// VZVirtualMachineConfiguration object needs to be populated with VZXHCIControllerConfiguration object.
14 ///
15 /// See: VZUSBController
16 ///
17 /// See: VZXHCIControllerConfiguration
18 ///
19 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzxhcicontroller?language=objc)
20 #[unsafe(super(VZUSBController, NSObject))]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 #[cfg(feature = "VZUSBController")]
23 pub struct VZXHCIController;
24);
25
26#[cfg(feature = "VZUSBController")]
27unsafe impl NSObjectProtocol for VZXHCIController {}
28
29#[cfg(feature = "VZUSBController")]
30impl VZXHCIController {
31 extern_methods!();
32}
33
34/// Methods declared on superclass `VZUSBController`.
35#[cfg(feature = "VZUSBController")]
36impl VZXHCIController {
37 extern_methods!(
38 #[unsafe(method(new))]
39 #[unsafe(method_family = new)]
40 pub unsafe fn new() -> Retained<Self>;
41
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45 );
46}